pub struct Entry<EntryMeta>where
EntryMeta: Meta,{
pub title: String,
pub description: Option<String>,
pub date: Option<DateTime>,
pub updated: DateTime,
pub index: Option<Index>,
pub cc: Vec<String>,
pub meta: EntryMeta,
pub name: String,
pub content: String,
pub format: String,
}Expand description
An entry in the website.
Note: Pages do not correspond one-to-one to Entries (due to pagination).
Fields§
§title: StringThe entry’s title.
This is separate from the general metadata for sorting and linking. All entries should have titles.
description: Option<String>The entry’s description.
If present, this will be included in compact indices.
date: Option<DateTime>The date & time at which the entry was created.
This is separate from the general metadata for sorting.
updated: DateTimeThe entry’s last modification time.
All entries have this. Usually this should be specified in the entry’s metadata, but it can also be derived from the associated file’s metadata.
index: Option<Index>The entries index options (if specified).
cc: Vec<String>Indices into which this entry should be linked.
meta: EntryMetaExtra metadata.
name: StringThe entry name.
content: StringThe content
format: StringContent format
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<EntryMeta> Freeze for Entry<EntryMeta>where
EntryMeta: Freeze,
impl<EntryMeta> RefUnwindSafe for Entry<EntryMeta>where
EntryMeta: RefUnwindSafe,
impl<EntryMeta> Send for Entry<EntryMeta>where
EntryMeta: Send,
impl<EntryMeta> Sync for Entry<EntryMeta>where
EntryMeta: Sync,
impl<EntryMeta> Unpin for Entry<EntryMeta>where
EntryMeta: Unpin,
impl<EntryMeta> UnwindSafe for Entry<EntryMeta>where
EntryMeta: 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