Struct cobalt::cobalt_model::Site
source · pub struct Site {
pub title: Option<KString>,
pub description: Option<KString>,
pub base_url: Option<KString>,
pub sitemap: Option<RelPath>,
pub data: Option<Object>,
pub data_dir: &'static str,
pub time: DateTime,
}
Fields§
§title: Option<KString>
§description: Option<KString>
§base_url: Option<KString>
§sitemap: Option<RelPath>
§data: Option<Object>
§data_dir: &'static str
§time: DateTime
The time at which the cobalt
binary built the site
Implementations§
Trait Implementations§
source§impl Deserialize<'static> for Site
impl Deserialize<'static> for Site
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Site
impl PartialEq for Site
impl Eq for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.