[go: up one dir, main page]

Struct rss::Cloud [] [src]

pub struct Cloud { /* fields omitted */ }

A representation of the <cloud> element.

Methods

impl Cloud
[src]

Return the domain for this Cloud.

Examples

use rss::CloudBuilder;

let domain = "http://rpc.sys.com/";

let cloud = CloudBuilder::default()
    .domain(domain)
    .finalize();

assert_eq!(domain.to_string(), cloud.domain());

Return the port for this Cloud.

Examples

use rss::CloudBuilder;

let port = 80;

let cloud = CloudBuilder::default()
    .port(port)
    .finalize();

assert_eq!(port.to_string(), cloud.port());

Return the path for this Cloud.

Examples

use rss::CloudBuilder;

let path = "/RPC2";

let cloud = CloudBuilder::default()
    .path(path)
    .finalize();

assert_eq!(path, cloud.path());

Return the register procedure for this Cloud.

Examples

use rss::{CloudBuilder, Cloud};

let register_procedure = "pingMe";

let cloud = CloudBuilder::default()
    .register_procedure(register_procedure)
    .finalize();

assert_eq!(register_procedure, cloud.register_procedure());

Return the protocol for this Cloud.

Examples

use rss::{CloudBuilder, Cloud};

let protocol = "soap";

let cloud = CloudBuilder::default()
    .protocol(protocol)
    .domain("http://rpc.sys.com/")
    .finalize();

assert_eq!(protocol, cloud.protocol());

Trait Implementations

impl Debug for Cloud
[src]

Formats the value using the given formatter.

impl Default for Cloud
[src]

Returns the "default value" for a type. Read more

impl Clone for Cloud
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Cloud
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.