pub struct Source { /* private fields */ }
Expand description
Represents the source of an RSS item.
Implementations
sourceimpl Source
impl Source
sourcepub fn url(&self) -> &str
pub fn url(&self) -> &str
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");
sourcepub fn set_url<V>(&mut self, url: V)where
V: Into<String>,
pub fn set_url<V>(&mut self, url: V)where
V: Into<String>,
Set the URL of this source.
Examples
use rss::Source;
let mut source = Source::default();
source.set_url("http://example.com");
Trait Implementations
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more