[][src]Struct rss::Cloud

pub struct Cloud { /* fields omitted */ }

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]

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]

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]

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]

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]

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]

Builds a Cloud from source XML

Trait Implementations

impl Clone for Cloud[src]

impl Debug for Cloud[src]

impl Default for Cloud[src]

impl PartialEq<Cloud> for Cloud[src]

impl StructuralPartialEq for Cloud[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.