[−][src]Struct feed_rs::model::Entry
An item within a feed
Fields
id: String
A unique identifier for this item with a feed. If not supplied it is initialised to a hash of the first link or a UUID if not available.
- Atom (required): Identifies the entry using a universally unique and permanent URI.
- RSS 2 (optional) "guid": A string that uniquely identifies the item.
- RSS 1: does not specify a unique ID as a separate item, but does suggest the URI should be "the same as the link" so we use a hash of the link if found
- JSON Feed: is unique for that item for that feed over time.
title: Option<Text>
Title of this item within the feed
- Atom, RSS 1(required): Contains a human readable title for the entry.
- RSS 2 (optional): The title of the item.
- JSON Feed: The title of the item.
updated: Option<DateTime<Utc>>
Time at which this item was last modified. If not provided in the source, or invalid, it is None
.
- Atom (required): Indicates the last time the entry was modified in a significant way.
- RSS doesn't specify this field.
- JSON Feed: the last modification date of this item
Authors of this item
- Atom (recommended): Collection of authors defined at the entry level.
- RSS 2 (optional): Email address of the author of the item.
- JSON Feed: the author of the item
content: Option<Content>
The content of the item
- Atom (recommended): Contains or links to the complete content of the entry.
- RSS 2 (optional) "enclosure": Describes a media object that is attached to the item.
- JSON Feed: the html content of the item, or the text content if no html is specified
links: Vec<Link>
Links associated with this item
- Atom (recommended): Identifies a related Web page.
- RSS 2 (optional): The URL of the item.
- RSS 1 (required): The item's URL.
- JSON Feed: the url and external URL for the item is the first items, then each subsequent attachment
summary: Option<Text>
A short summary of the item
- Atom (recommended): Conveys a short summary, abstract, or excerpt of the entry.
- RSS 1+2 (optional): The item synopsis.
- JSON Feed: the summary for the item, or the text content if no summary is provided and both text and html content are specified
categories: Vec<Category>
Structured classification of the item
- Atom (optional): Specifies a category that the entry belongs to. A feed may have multiple category elements.
- RSS 2 (optional): Includes the item in one or more categories.
- JSON Feed: the supplied item tags
contributors: Vec<Person>
Atom (optional): Names one contributor to the entry. A feed may have multiple contributor elements.
published: Option<DateTime<Utc>>
Time at which this item was first published
- Atom (optional): Contains the time of the initial creation or first availability of the entry.
- RSS 2 (optional) "pubDate": Indicates when the item was published.
- JSON Feed: the date at which the item was published
source: Option<String>
Atom (optional): If an entry is copied from one feed into another feed, then this contains the source feed metadata.
rights: Option<Text>
Atom (optional): Conveys information about rights, e.g. copyrights, held in and over the feed.
Trait Implementations
impl Debug for Entry
[src]
impl Default for Entry
[src]
impl PartialEq<Entry> for Entry
[src]
impl StructuralPartialEq for Entry
[src]
Auto Trait Implementations
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,