[][src]Struct mdpage::Data

pub struct Data {
    pub full_page: Option<bool>,
    pub title: Option<String>,
    pub subtitle: Option<String>,
    pub author: Option<String>,
    pub icon: Option<String>,
    pub main: Option<Content>,
    pub contents: Option<Vec<Content>>,
    pub script: Option<String>,
    pub style: Option<String>,
    pub links: Option<Vec<Link>>,
    pub header: Option<Content>,
    pub footer: Option<Content>,
}

Data serves both as the configuration data for mdPage as well as the actual template data for generating content.

Fields

full_page: Option<bool>

Whether to do full page or not.

title: Option<String>

Title used in header and title of the document.

subtitle: Option<String>

Subtitle used in header.

author: Option<String>

Author used in metadata.

icon: Option<String>

The favicon link.

main: Option<Content>

The main content used for the front page.

contents: Option<Vec<Content>>

The content of the document.

script: Option<String>

The custom JavaScript to be added in the script tag.

style: Option<String>

The custom CSS to be added in the style tag.

links: Option<Vec<Link>>

The custom style and script links.

header: Option<Content>

Custom header content.

footer: Option<Content>

Custom footer content.

Trait Implementations

impl Clone for Data[src]

impl Debug for Data[src]

impl Default for Data[src]

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

impl PartialEq<Data> for Data[src]

impl Serialize for Data[src]

impl StructuralPartialEq for Data[src]

Auto Trait Implementations

impl RefUnwindSafe for Data

impl Send for Data

impl Sync for Data

impl Unpin for Data

impl UnwindSafe for Data

Blanket Implementations

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

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

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

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

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

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

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.