Struct rss::Cloud
[−]
[src]
pub struct Cloud { /* fields omitted */ }
Represents a cloud in an RSS feed.
Methods
impl Cloud
[src]
fn domain(&self) -> &str
[src]
Return the domain for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_domain("http://example.com"); assert_eq!(cloud.domain(), "http://example.com");
fn set_domain<V>(&mut self, domain: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the domain for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_domain("http://example.com");
fn port(&self) -> &str
[src]
Return the port for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_port("80"); assert_eq!(cloud.port(), "80");
fn set_port<V>(&mut self, port: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the port for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_port("80");
fn path(&self) -> &str
[src]
Return the path for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_port("/rpc"); assert_eq!(cloud.port(), "/rpc");
fn set_path<V>(&mut self, path: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the path for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_path("/rpc");
fn register_procedure(&self) -> &str
[src]
Return the register procedure for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_register_procedure("pingMe"); assert_eq!(cloud.register_procedure(), "pingMe");
fn set_register_procedure<V>(&mut self, register_procedure: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the register procedure for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_register_procedure("pingMe");
fn protocol(&self) -> &str
[src]
Return the protocol for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_protocol("xml-rpc"); assert_eq!(cloud.protocol(), "xml-rpc");
fn set_protocol<V>(&mut self, protocol: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the protocol for this cloud.
Examples
use rss::Cloud; let mut cloud = Cloud::default(); cloud.set_protocol("xml-rpc");
Trait Implementations
impl Debug for Cloud
[src]
impl Default for Cloud
[src]
impl Clone for Cloud
[src]
fn clone(&self) -> Cloud
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more