[−][src]Struct rss::Cloud
Represents a cloud in an RSS feed.
Methods
impl Cloud
[src]
pub 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");
pub 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");
pub 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");
pub 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");
pub 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");
pub 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");
pub 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");
pub 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");
pub 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");
pub 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");
impl Cloud
[src]
pub fn from_xml<R: BufRead>(
reader: &mut Reader<R>,
atts: Attributes
) -> Result<Self, Error>
[src]
reader: &mut Reader<R>,
atts: Attributes
) -> Result<Self, Error>
Builds a Cloud from source XML
Trait Implementations
impl PartialEq<Cloud> for Cloud
[src]
impl Clone for Cloud
[src]
fn clone(&self) -> Cloud
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Cloud
[src]
impl Debug for Cloud
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,