pub struct FlatPage<E = ()> {
pub title: String,
pub description: Option<String>,
pub body: String,
pub extra: E,
}Expand description
Flat page
The generic parameter E is used to define extra frontmatter fields
Fields§
§title: StringTitle - for html title tag, og:title, etc
description: Option<String>Description - for html meta description, og:description, etc
body: StringRaw markdown version of the body
extra: EExtra frontmatter fields (except of title and description)
Implementations§
Source§impl<E: DeserializeOwned> FlatPage<E>
impl<E: DeserializeOwned> FlatPage<E>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for FlatPage<E>where
E: Freeze,
impl<E> RefUnwindSafe for FlatPage<E>where
E: RefUnwindSafe,
impl<E> Send for FlatPage<E>where
E: Send,
impl<E> Sync for FlatPage<E>where
E: Sync,
impl<E> Unpin for FlatPage<E>where
E: Unpin,
impl<E> UnwindSafe for FlatPage<E>where
E: 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