pub struct Cloud {
pub domain: String,
pub port: String,
pub path: String,
pub register_procedure: String,
pub protocol: String,
}
Expand description
Represents a cloud in an RSS feed.
Fields
domain: String
The domain to register with.
port: String
The port to register with.
path: String
The path to register with.
register_procedure: String
The procedure to register with.
protocol: String
The protocol to register with.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more