Struct gazetta_core::model::Entry [] [src]

pub struct Entry<EntryMeta> where
    EntryMeta: Meta
{ pub title: String, pub description: Option<String>, pub date: Option<Date>, pub index: Option<Index>, pub cc: Vec<String>, pub meta: EntryMeta, pub name: String, pub content: String, pub format: String, }

An entry in the website.

Note: Pages do not correspond one-to-one to Entries (due to pagination).

Fields

The entry's title.

This is separate from the general metadata for sorting and linking. All entries should have titles.

The entry's description.

If present, this will be included in compact indices.

The entry's date.

This is separate from the general metadata for sorting. Many entries will have dates.

The entries index options (if specified).

Indices into which this entry should be linked.

Extra metadata.

The entry name.

The content

Content format

Methods

impl<EntryMeta> Entry<EntryMeta> where
    EntryMeta: Meta
[src]

Trait Implementations

impl<EntryMeta: Debug> Debug for Entry<EntryMeta> where
    EntryMeta: Meta
[src]

Formats the value using the given formatter.

impl<EntryMeta: Clone> Clone for Entry<EntryMeta> where
    EntryMeta: Meta
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more