Struct rss::Source
[−]
[src]
pub struct Source { /* fields omitted */ }
Represents the source of an RSS item.
Methods
impl Source
[src]
fn url(&self) -> &str
[src]
Return the URL of this source.
Examples
use rss::Source; let mut source = Source::default(); source.set_url("http://example.com"); assert_eq!(source.url(), "http://example.com");
fn set_url<V>(&mut self, url: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the URL of this source.
Examples
use rss::Source; let mut source = Source::default(); source.set_url("http://example.com");
fn title(&self) -> Option<&str>
[src]
Return the title of this source.
Examples
use rss::Source; let mut source = Source::default(); source.set_title("Source Title".to_string()); assert_eq!(source.title(), Some("Source Title"));
fn set_title<V>(&mut self, title: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the title of this source.
Examples
use rss::Source; let mut source = Source::default(); source.set_title("Source Title".to_string());
Trait Implementations
impl Debug for Source
[src]
impl Default for Source
[src]
impl Clone for Source
[src]
fn clone(&self) -> Source
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more