[][src]Struct feed_rs::model::Feed

pub struct Feed {
    pub id: String,
    pub title: Option<Text>,
    pub updated: Option<DateTime<Utc>>,
    pub authors: Vec<Person>,
    pub description: Option<Text>,
    pub links: Vec<Link>,
    pub categories: Vec<Category>,
    pub contributors: Vec<Person>,
    pub generator: Option<Generator>,
    pub icon: Option<Image>,
    pub language: Option<String>,
    pub logo: Option<Image>,
    pub published: Option<DateTime<Utc>>,
    pub rights: Option<Text>,
    pub ttl: Option<u32>,
    pub entries: Vec<Entry>,
}

Combined model for a syndication feed (i.e. RSS1, RSS 2, Atom, JSON Feed)

The model is based on the Atom standard as a start with RSS1+2 mapped on to it e.g.

Certain elements are not mapped given their limited utility:

Fields

id: String

A unique identifier for this feed

title: Option<Text>

The title of the feed

updated: Option<DateTime<Utc>>

The time at which the feed was last modified. If not provided in the source, or invalid, it is None.

authors: Vec<Person>

Atom (recommended): Collection of authors defined at the feed level. JSON Feed: specifies the feed author.

description: Option<Text>

Description of the feed

links: Vec<Link>

Links to related pages

categories: Vec<Category>

Structured classification of the feed

contributors: Vec<Person>

People who have contributed to the feed

generator: Option<Generator>

Information on the software used to build the feed

icon: Option<Image>

A small icon

language: Option<String>

RSS 2 (optional): The language the channel is written in.

An image used to visually identify the feed

published: Option<DateTime<Utc>>

RSS 2 (optional): The publication date for the content in the channel.

rights: Option<Text>

Rights restricting content within the feed

ttl: Option<u32>

RSS 2 (optional): It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.

entries: Vec<Entry>

The individual items within the feed

Trait Implementations

impl Debug for Feed[src]

impl Default for Feed[src]

impl PartialEq<Feed> for Feed[src]

impl StructuralPartialEq for Feed[src]

Auto Trait Implementations

impl RefUnwindSafe for Feed

impl Send for Feed

impl Sync for Feed

impl Unpin for Feed

impl UnwindSafe for Feed

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]