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]
fn url(&self) -> Url
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());
fn title(&self) -> Option<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]
fn clone(&self) -> Source
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more