Struct feed::channels::Source [] [src]

pub struct Source { /* fields omitted */ }

This Source struct contains all the items that exist for the source field under 'Item'.

Methods

impl Source
[src]

Get the url that exists under Source.

Examples

use feed::channels::SourceBuilder;

let url = "http://www.tomalak.org/links2.xml";

let source = SourceBuilder::new()
    .url(url)
    .finalize();

assert_eq!(url.to_owned(), source.url().into_string());

Get the source that exists under Source.

Examples

use feed::channels::SourceBuilder;

let title = "Tomalak's Realm";

let url = "http://www.tomalak.org/links2.xml";

let source_obj = SourceBuilder::new()
    .title(Some(title.to_owned()))
    .url(url)
    .finalize();
assert_eq!(title.to_owned(), source_obj.title().unwrap());

Trait Implementations

impl Clone for Source
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more