[][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 weight: Option<i32>,
    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>weight: Option<i32>data: Objectpagination: Option<PaginationConfigBuilder>collection: Option<String>

Implementations

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_weight<I: Into<Option<i32>>>(self, weight: I) -> 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_weight<I: Into<Option<i32>>>(self, weight: I) -> 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 Clone for FrontmatterBuilder[src]

impl Debug for FrontmatterBuilder[src]

impl Default for FrontmatterBuilder[src]

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

impl Display for FrontmatterBuilder[src]

impl Eq for FrontmatterBuilder[src]

impl Front for FrontmatterBuilder[src]

impl PartialEq<FrontmatterBuilder> for FrontmatterBuilder[src]

impl Serialize for FrontmatterBuilder[src]

impl StructuralEq for FrontmatterBuilder[src]

impl StructuralPartialEq for FrontmatterBuilder[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.