[−][src]Struct gazetta::view::Site
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 as Gazetta>::SiteMeta
Extra metadata specified in the Source.
Trait Implementations
impl<'a, G> Deref for Site<'a, G> where
G: Gazetta + 'a,
<G as Gazetta>::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
<G as Gazetta>::SiteMeta: 'a,
type Target = <G as Gazetta>::SiteMeta
The resulting type after dereferencing.
fn deref(&self) -> &<Site<'a, G> as Deref>::Target
[src]
impl<'a, G> Debug for Site<'a, G> where
G: Gazetta + 'a,
<G as Gazetta>::PageMeta: 'a,
<G as Gazetta>::SiteMeta: Debug,
<G as Gazetta>::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
<G as Gazetta>::PageMeta: 'a,
<G as Gazetta>::SiteMeta: Debug,
<G as Gazetta>::SiteMeta: 'a,
impl<'a, G> Clone for Site<'a, G> where
G: Gazetta + 'a,
<G as Gazetta>::PageMeta: 'a,
<G as Gazetta>::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
<G as Gazetta>::PageMeta: 'a,
<G as Gazetta>::SiteMeta: 'a,
impl<'a, G> Copy for Site<'a, G> where
G: Gazetta + 'a,
<G as Gazetta>::PageMeta: 'a,
<G as Gazetta>::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
<G as Gazetta>::PageMeta: 'a,
<G as Gazetta>::SiteMeta: 'a,
Auto Trait Implementations
impl<'a, G> Send for Site<'a, G> where
<G as Gazetta>::SiteMeta: Sync,
<G as Gazetta>::SiteMeta: Sync,
impl<'a, G> Sync for Site<'a, G> where
<G as Gazetta>::SiteMeta: Sync,
<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,
<G as Gazetta>::SiteMeta: RefUnwindSafe,
impl<'a, G> RefUnwindSafe for Site<'a, G> where
<G as Gazetta>::SiteMeta: RefUnwindSafe,
<G as Gazetta>::SiteMeta: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,