[][src]Struct cobalt::cobalt_model::FrontmatterBuilder

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

Fields

permalink: Option<String>slug: Option<String>title: Option<String>description: Option<String>excerpt: Option<String>categories: Option<Vec<String>>tags: Option<Vec<String>>excerpt_separator: Option<String>published_date: Option<DateTime>format: Option<SourceFormat>layout: Option<String>is_draft: Option<bool>data: Objectpagination: Option<PaginationConfigBuilder>collection: Option<String>

Methods

impl FrontmatterBuilder
[src]

pub fn new() -> Self
[src]

pub fn set_slug<S: Into<Option<String>>>(self, slug: S) -> Self
[src]

pub fn set_title<S: Into<Option<String>>>(self, title: S) -> Self
[src]

pub fn set_description<S: Into<Option<String>>>(self, description: S) -> Self
[src]

pub fn set_excerpt<S: Into<Option<String>>>(self, excerpt: S) -> Self
[src]

pub fn set_categories<S: Into<Option<Vec<String>>>>(self, categories: S) -> Self
[src]

pub fn set_tags<S: Into<Option<Vec<String>>>>(self, tags: S) -> Self
[src]

pub fn set_pagination<S: Into<Option<PaginationConfigBuilder>>>(
    self,
    pagination: S
) -> Self
[src]

pub fn set_excerpt_separator<S: Into<Option<String>>>(
    self,
    excerpt_separator: S
) -> Self
[src]

pub fn set_published_date<D: Into<Option<DateTime>>>(
    self,
    published_date: D
) -> Self
[src]

pub fn set_layout<S: Into<Option<String>>>(self, layout: S) -> Self
[src]

pub fn set_draft<B: Into<Option<bool>>>(self, is_draft: B) -> Self
[src]

pub fn set_collection<S: Into<Option<String>>>(self, collection: S) -> Self
[src]

pub fn merge_slug<S: Into<Option<String>>>(self, slug: S) -> Self
[src]

pub fn merge_title<S: Into<Option<String>>>(self, title: S) -> Self
[src]

pub fn merge_description<S: Into<Option<String>>>(self, description: S) -> Self
[src]

pub fn merge_excerpt<S: Into<Option<String>>>(self, excerpt: S) -> Self
[src]

pub fn merge_categories<S: Into<Option<Vec<String>>>>(
    self,
    categories: S
) -> Self
[src]

pub fn merge_tags<S: Into<Option<Vec<String>>>>(self, tags: S) -> Self
[src]

pub fn merge_excerpt_separator<S: Into<Option<String>>>(
    self,
    excerpt_separator: S
) -> Self
[src]

pub fn merge_published_date<D: Into<Option<DateTime>>>(
    self,
    published_date: D
) -> Self
[src]

pub fn merge_pagination<S: Into<Option<PaginationConfigBuilder>>>(
    self,
    secondary: S
) -> Self
[src]

pub fn merge_layout<S: Into<Option<String>>>(self, layout: S) -> Self
[src]

pub fn merge_draft<B: Into<Option<bool>>>(self, draft: B) -> Self
[src]

pub fn merge_data(self, other_data: Object) -> Self
[src]

pub fn merge(self, other: Self) -> Self
[src]

pub fn merge_path<P: AsRef<Path>>(self, relpath: P) -> Self
[src]

pub fn build(self) -> Result<Frontmatter>
[src]

Trait Implementations

impl Front for FrontmatterBuilder
[src]

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

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

impl Default for FrontmatterBuilder
[src]

impl Clone for FrontmatterBuilder
[src]

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

Performs copy-assignment from source. Read more

impl Eq for FrontmatterBuilder
[src]

impl PartialEq<FrontmatterBuilder> for FrontmatterBuilder
[src]

impl Display for FrontmatterBuilder
[src]

impl Debug for FrontmatterBuilder
[src]

impl Serialize for FrontmatterBuilder
[src]

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

Auto Trait Implementations

Blanket Implementations

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

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, 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, 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> BorrowMut for T where
    T: ?Sized
[src]

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