Expand description
Represents the source of an RSS item.
Fields
url: String
The URL of the source.
title: Option<String>
The title of the source.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more