PageMetaData

Struct PageMetaData 

Source
pub struct PageMetaData<'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 favicons: &'a [Favicon<'a>],
    pub menu: Option<&'a Menu<'a>>,
    pub contact: Option<&'a Contact<'a>>,
    pub logo: Option<&'a Logo<'a>>,
    pub theme_color: &'a str,
}
Expand description

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.

§favicons: &'a [Favicon<'a>]

The favicon

§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.

Trait Implementations§

Source§

impl<'a> Default for PageMetaData<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for PageMetaData<'a>

§

impl<'a> RefUnwindSafe for PageMetaData<'a>

§

impl<'a> Send for PageMetaData<'a>

§

impl<'a> Sync for PageMetaData<'a>

§

impl<'a> Unpin for PageMetaData<'a>

§

impl<'a> UnwindSafe for PageMetaData<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.