[][src]Struct static_page_builder::data::MetaData

pub struct MetaData<'a> {
    pub lang: &'a str,
    pub charset: &'a str,
    pub scripts: &'a [Script<'a>],
    pub css: &'a [Css<'a>],
    pub title: &'a str,
    pub description: &'a str,
    pub copyright: Copyright<'a>,
    pub menu: Option<&'a Menu<'a>>,
    pub contact: Option<&'a Contact<'a>>,
    pub logo: Option<&'a Logo<'a>>,
    pub theme_color: &'a str,
}

Data used during site generation for things like css, scripts, contact info and menus. Most are for meta tags.

Fields

lang: &'a str

Language of the website.

charset: &'a str

Encoding of the website.

scripts: &'a [Script<'a>]

Scripts to include in the website.

css: &'a [Css<'a>]

CSS to include in the website.

title: &'a str

The title of the website.

description: &'a str

The description of the website.

copyright: Copyright<'a>

The copyright data of the website.

menu: Option<&'a Menu<'a>>

The menu of the website.

contact: Option<&'a Contact<'a>>

The points of contact for the owner of the website.

The logo of the website.

theme_color: &'a str

The theme color of the website. Affects mobile address name bars.

Methods

impl<'a> MetaData<'a>[src]

pub fn builder(
) -> TypedBuilder_BuilderFor_MetaData<'a, (), (), (), (), (), (), (), (), (), (), ()>
[src]

Create a builder for building MetaData. On the builder, call .lang(...)(optional), .charset(...)(optional), .scripts(...)(optional), .css(...)(optional), .title(...)(optional), .description(...)(optional), .copyright(...)(optional), .menu(...)(optional), .contact(...)(optional), .logo(...)(optional), .theme_color(...)(optional) to set the values of the fields(they accept Into values). Finally, call .build() to create the instance of MetaData.

Trait Implementations

impl<'a> Default for MetaData<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MetaData<'a>

impl<'a> Send for MetaData<'a>

impl<'a> Sync for MetaData<'a>

impl<'a> Unpin for MetaData<'a>

impl<'a> UnwindSafe for MetaData<'a>

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> From<T> for T[src]

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

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.