Struct rss::Source
[−]
[src]
pub struct Source { /* fields omitted */ }
A representation of the <source>
element.
Methods
impl Source
[src]
fn url(&self) -> &str
Return the URL for this Source
.
Examples
use rss::SourceBuilder; let url = "http://www.tomalak.org/links2.xml"; let source = SourceBuilder::default() .url(url) .finalize(); assert_eq!(url, source.url());
fn title(&self) -> Option<&str>
Return the title of this Source
.
Examples
use rss::SourceBuilder; let title = "Tomalak's Realm"; let source = SourceBuilder::default() .title(title.to_string()) .finalize(); assert_eq!(Some(title), source.title());
Trait Implementations
impl Debug for Source
[src]
impl Default for Source
[src]
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