pub struct Cloud { /* private fields */ }
Expand description
Represents a cloud in an RSS feed.
Implementations
sourceimpl Cloud
impl Cloud
sourcepub fn domain(&self) -> &str
pub fn domain(&self) -> &str
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");
sourcepub fn set_domain<V>(&mut self, domain: V)where
V: Into<String>,
pub fn set_domain<V>(&mut self, domain: V)where
V: Into<String>,
Set the domain for this cloud.
Examples
use rss::Cloud;
let mut cloud = Cloud::default();
cloud.set_domain("http://example.com");
sourcepub fn port(&self) -> &str
pub fn port(&self) -> &str
Return the port for this cloud.
Examples
use rss::Cloud;
let mut cloud = Cloud::default();
cloud.set_port("80");
assert_eq!(cloud.port(), "80");
sourcepub fn set_port<V>(&mut self, port: V)where
V: Into<String>,
pub fn set_port<V>(&mut self, port: V)where
V: Into<String>,
Set the port for this cloud.
Examples
use rss::Cloud;
let mut cloud = Cloud::default();
cloud.set_port("80");
sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Return the path for this cloud.
Examples
use rss::Cloud;
let mut cloud = Cloud::default();
cloud.set_port("/rpc");
assert_eq!(cloud.port(), "/rpc");
sourcepub fn set_path<V>(&mut self, path: V)where
V: Into<String>,
pub fn set_path<V>(&mut self, path: V)where
V: Into<String>,
Set the path for this cloud.
Examples
use rss::Cloud;
let mut cloud = Cloud::default();
cloud.set_path("/rpc");
sourcepub fn register_procedure(&self) -> &str
pub fn register_procedure(&self) -> &str
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");
sourcepub fn set_register_procedure<V>(&mut self, register_procedure: V)where
V: Into<String>,
pub fn set_register_procedure<V>(&mut self, register_procedure: V)where
V: Into<String>,
Set the register procedure for this cloud.
Examples
use rss::Cloud;
let mut cloud = Cloud::default();
cloud.set_register_procedure("pingMe");
sourcepub fn protocol(&self) -> &str
pub fn protocol(&self) -> &str
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");
sourcepub fn set_protocol<V>(&mut self, protocol: V)where
V: Into<String>,
pub fn set_protocol<V>(&mut self, protocol: V)where
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 StructuralPartialEq for Cloud
Auto Trait Implementations
impl RefUnwindSafe for Cloud
impl Send for Cloud
impl Sync for Cloud
impl Unpin for Cloud
impl UnwindSafe for Cloud
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more