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 strLanguage of the website.
charset: &'a strEncoding 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 strThe title of the website.
description: &'a strThe description of the website.
copyright: Copyright<'a>The copyright data of the website.
favicons: &'a [Favicon<'a>]The favicon
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 strThe theme color of the website. Affects mobile address name bars.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more