[−][src]Struct gazetta_core::model::Entry
An entry in the website.
Note: Pages do not correspond one-to-one to Entries (due to pagination).
Fields
title: String
The 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<Date>
The entry's date.
This is separate from the general metadata for sorting. Many entries will have dates.
index: Option<Index>
The entries index options (if specified).
cc: Vec<String>
Indices into which this entry should be linked.
meta: EntryMeta
Extra metadata.
name: String
The entry name.
content: String
The content
format: String
Content format
Methods
impl<EntryMeta> Entry<EntryMeta> where
EntryMeta: Meta,
[src]
EntryMeta: Meta,
pub fn from_file<P>(full_path: P, name: &str) -> Result<Self, SourceError> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Trait Implementations
impl<EntryMeta: Clone> Clone for Entry<EntryMeta> where
EntryMeta: Meta,
[src]
EntryMeta: Meta,
impl<EntryMeta: Debug> Debug for Entry<EntryMeta> where
EntryMeta: Meta,
[src]
EntryMeta: Meta,
Auto Trait Implementations
impl<EntryMeta> RefUnwindSafe for Entry<EntryMeta> where
EntryMeta: RefUnwindSafe,
EntryMeta: RefUnwindSafe,
impl<EntryMeta> Send for Entry<EntryMeta> where
EntryMeta: Send,
EntryMeta: Send,
impl<EntryMeta> Sync for Entry<EntryMeta> where
EntryMeta: Sync,
EntryMeta: Sync,
impl<EntryMeta> Unpin for Entry<EntryMeta> where
EntryMeta: Unpin,
EntryMeta: Unpin,
impl<EntryMeta> UnwindSafe for Entry<EntryMeta> where
EntryMeta: UnwindSafe,
EntryMeta: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,