[][src]Struct cobalt::cobalt_model::Frontmatter

pub struct Frontmatter {
    pub permalink: String,
    pub slug: String,
    pub title: String,
    pub description: Option<String>,
    pub excerpt: Option<String>,
    pub categories: Vec<String>,
    pub tags: Option<Vec<String>>,
    pub excerpt_separator: String,
    pub published_date: Option<DateTime>,
    pub format: SourceFormat,
    pub layout: Option<String>,
    pub is_draft: bool,
    pub collection: String,
    pub data: Object,
    pub pagination: Option<PaginationConfig>,
}

Fields

permalink: Stringslug: Stringtitle: Stringdescription: Option<String>excerpt: Option<String>categories: Vec<String>tags: Option<Vec<String>>excerpt_separator: Stringpublished_date: Option<DateTime>format: SourceFormatlayout: Option<String>is_draft: boolcollection: Stringdata: Objectpagination: Option<PaginationConfig>

Trait Implementations

impl Front for Frontmatter
[src]

fn parse(content: &str) -> Result<Self>
[src]

fn to_string(&self) -> Result<String>
[src]

impl Eq for Frontmatter
[src]

impl Default for Frontmatter
[src]

impl PartialEq<Frontmatter> for Frontmatter
[src]

impl Clone for Frontmatter
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Frontmatter
[src]

impl Display for Frontmatter
[src]

impl Serialize for Frontmatter
[src]

impl<'de> Deserialize<'de> for Frontmatter where
    Frontmatter: Default
[src]

Auto Trait Implementations

impl Send for Frontmatter

impl Sync for Frontmatter

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Any for T where
    T: Any

impl<T> CloneAny for T where
    T: Clone + Any