[−][src]Struct gazetta::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<NaiveDate>
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<Entry<EntryMeta>, SourceError> where
P: AsRef<Path>,
[src]
full_path: P,
name: &str
) -> Result<Entry<EntryMeta>, SourceError> where
P: AsRef<Path>,
Trait Implementations
impl<EntryMeta> Clone for Entry<EntryMeta> where
EntryMeta: Clone + Meta,
[src]
EntryMeta: Clone + Meta,
impl<EntryMeta> Debug for Entry<EntryMeta> where
EntryMeta: Debug + Meta,
[src]
EntryMeta: Debug + Meta,
Auto Trait Implementations
impl<EntryMeta> Send for Entry<EntryMeta> where
EntryMeta: Send,
EntryMeta: Send,
impl<EntryMeta> Unpin for Entry<EntryMeta> where
EntryMeta: Unpin,
EntryMeta: Unpin,
impl<EntryMeta> Sync for Entry<EntryMeta> where
EntryMeta: Sync,
EntryMeta: Sync,
impl<EntryMeta> UnwindSafe for Entry<EntryMeta> where
EntryMeta: UnwindSafe,
EntryMeta: UnwindSafe,
impl<EntryMeta> RefUnwindSafe for Entry<EntryMeta> where
EntryMeta: RefUnwindSafe,
EntryMeta: RefUnwindSafe,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,