#[non_exhaustive]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<Timestamp>,
pub updated_str: Option<String>,
pub rights: Option<String>,
pub guidislink: Option<bool>,
}Expand description
Source reference (for entries)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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<Timestamp>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 Forget for Source
impl Freeze for Source
impl Move for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Sourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
impl UnwindSafe for Sourcewhere
RawVecInner: UnwindSafe,
*const (): UnwindSafe,
Arc<str>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
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