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]

[src]

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<EntryMeta> Send for Entry<EntryMeta> where
    EntryMeta: Send

impl<EntryMeta> Sync for Entry<EntryMeta> where
    EntryMeta: Sync