[−][src]Struct static_page_builder::data::MetaData
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.
The menu of the website.
contact: Option<&'a Contact<'a>>
The points of contact for the owner of the website.
logo: Option<&'a Logo<'a>>
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]
) -> TypedBuilder_BuilderFor_MetaData<'a, (), (), (), (), (), (), (), (), (), (), ()>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,