pub struct Source {
pub title: Option<String>,
pub href: Option<String>,
pub link: Option<String>,
pub author: Option<String>,
pub id: Option<String>,
pub links: Vec<Link>,
pub updated: Option<DateTime<Utc>>,
pub updated_str: Option<String>,
pub rights: Option<String>,
pub guidislink: Option<bool>,
}Expand description
Source reference (for entries)
Fields§
§title: Option<String>Source title
href: Option<String>Primary source URL for RSS <source url="..."> (RSS-only field)
link: Option<String>Primary source URL for Atom <source><link href="..."/> (Atom-only field)
Source author (flat string, Atom <source><author>)
id: Option<String>Source unique identifier
links: Vec<Link>All links from the source element
updated: Option<DateTime<Utc>>Last update date (Atom <updated>)
updated_str: Option<String>Original update date string (timezone preserved)
rights: Option<String>Rights/copyright statement (Atom <rights>)
guidislink: Option<bool>Whether <id> was used as the link.
Some(true) when <id> looks like a URL and no explicit <link> was present.
Some(false) when <id> is present but a <link> was also present, or <id> is not a URL.
None for RSS sources (RSS <source> has no <id>).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more