[][src]Struct gazetta_core::view::Site

pub struct Site<'a, G> where
    G: Gazetta + 'a,
    G::SiteMeta: 'a, 
{ pub title: &'a str, pub origin: &'a str, pub prefix: &'a str, pub stylesheets: Option<&'a str>, pub javascript: Option<&'a str>, pub icon: Option<&'a str>, pub meta: &'a G::SiteMeta, }

A "website"

You should include this view at the top of your websites "head". It renders into script, stylesheet, icon tags, metadata tags, and importantly the base tag.

html! {
    html {
        head {
            : site;
            // ...
        }
    }
}

Fields

title: &'a str

The website's title

origin: &'a str

The "canonical" origin for the website. (i.e. the <protocol>://<domain>:<port> part of the url)

prefix: &'a str

The path prefix at wich we're serving this website.

stylesheets: Option<&'a str>

The concatinated stylesheets.

javascript: Option<&'a str>

The concatinated javascript.

icon: Option<&'a str>

The icon.

meta: &'a G::SiteMeta

Extra metadata specified in the Source.

Trait Implementations

impl<'a, G> Clone for Site<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: 'a,
    G::SiteMeta: 'a, 
[src]

impl<'a, G> Copy for Site<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: 'a,
    G::SiteMeta: 'a, 
[src]

impl<'a, G> Debug for Site<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: 'a,
    G::SiteMeta: Debug + 'a, 
[src]

impl<'a, G> Deref for Site<'a, G> where
    G: Gazetta + 'a,
    G::SiteMeta: 'a, 
[src]

type Target = G::SiteMeta

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, G> RefUnwindSafe for Site<'a, G> where
    <G as Gazetta>::SiteMeta: RefUnwindSafe

impl<'a, G> Send for Site<'a, G> where
    <G as Gazetta>::SiteMeta: Sync

impl<'a, G> Sync for Site<'a, G> where
    <G as Gazetta>::SiteMeta: Sync

impl<'a, G> Unpin for Site<'a, G>

impl<'a, G> UnwindSafe for Site<'a, G> where
    <G as Gazetta>::SiteMeta: RefUnwindSafe

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