[][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 weight: i32,
    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: boolweight: i32collection: Stringdata: Objectpagination: Option<PaginationConfig>

Trait Implementations

impl Clone for Frontmatter[src]

impl Debug for Frontmatter[src]

impl Default for Frontmatter[src]

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

impl Display for Frontmatter[src]

impl Eq for Frontmatter[src]

impl Front for Frontmatter[src]

impl PartialEq<Frontmatter> for Frontmatter[src]

impl Serialize for Frontmatter[src]

impl StructuralEq for Frontmatter[src]

impl StructuralPartialEq for Frontmatter[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToString for T where
    T: Display + ?Sized
[src]

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.