Struct dokkoo::Page[][src]

pub struct Page {
    pub data: HashMap<String, Value>,
    pub content: String,
    pub permalink: String,
    pub date: Date,
    pub directory: String,
    pub name: String,
    pub url: String,
    pub markdown: bool,
}

Generated data regarding a Mokk File

Fields

data: HashMap<String, Value>

A File’s contextual data, represented as YAML at the head/front of the file

content: String

A File’s contents following the frontmatter

permalink: String

Data representing the output path of a File. This is defined in a File’s frontmatter

date: Date

A File’s date-time metadata, formatted per the RFC 3339 standard. This is defined in a File’s frontmatter

directory: String

Path to the File, not including the File itself

name: String

The File’s base filename

url: String

The output path of a file; a processed permalink value

markdown: bool

Whether a File is intended to be marked-up in Markdown (intended for when a different markup language [HTML, XML, et cetera], or none at all, is more appropriate)

Trait Implementations

impl Clone for Page[src]

impl Debug for Page[src]

impl<'de> Deserialize<'de> for Page[src]

impl Serialize for Page[src]

Auto Trait Implementations

impl RefUnwindSafe for Page

impl Send for Page

impl Sync for Page

impl Unpin for Page

impl UnwindSafe for Page

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,