Struct cobalt::cobalt_model::FrontmatterBuilder
[−]
[src]
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 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 collection: Option<String>, }
Fields
permalink: Option<String>
slug: Option<String>
title: Option<String>
description: Option<String>
excerpt: Option<String>
categories: Option<Vec<String>>
excerpt_separator: Option<String>
published_date: Option<DateTime>
format: Option<SourceFormat>
layout: Option<String>
is_draft: Option<bool>
data: Object
collection: Option<String>
Methods
impl FrontmatterBuilder
[src]
fn new() -> Self
[src]
fn set_permalink<S: Into<Option<String>>>(self, permalink: S) -> Self
[src]
fn set_slug<S: Into<Option<String>>>(self, slug: S) -> Self
[src]
fn set_title<S: Into<Option<String>>>(self, title: S) -> Self
[src]
fn set_description<S: Into<Option<String>>>(self, description: S) -> Self
[src]
fn set_excerpt<S: Into<Option<String>>>(self, excerpt: S) -> Self
[src]
fn set_categories<S: Into<Option<Vec<String>>>>(self, categories: S) -> Self
[src]
fn set_excerpt_separator<S: Into<Option<String>>>(
self,
excerpt_separator: S
) -> Self
[src]
self,
excerpt_separator: S
) -> Self
fn set_published_date<D: Into<Option<DateTime>>>(
self,
published_date: D
) -> Self
[src]
self,
published_date: D
) -> Self
fn set_layout<S: Into<Option<String>>>(self, layout: S) -> Self
[src]
fn set_draft<B: Into<Option<bool>>>(self, is_draft: B) -> Self
[src]
fn set_collection<S: Into<Option<String>>>(self, collection: S) -> Self
[src]
fn merge_permalink<S: Into<Option<String>>>(self, permalink: S) -> Self
[src]
fn merge_slug<S: Into<Option<String>>>(self, slug: S) -> Self
[src]
fn merge_title<S: Into<Option<String>>>(self, title: S) -> Self
[src]
fn merge_description<S: Into<Option<String>>>(self, description: S) -> Self
[src]
fn merge_excerpt<S: Into<Option<String>>>(self, excerpt: S) -> Self
[src]
fn merge_categories<S: Into<Option<Vec<String>>>>(self, categories: S) -> Self
[src]
fn merge_excerpt_separator<S: Into<Option<String>>>(
self,
excerpt_separator: S
) -> Self
[src]
self,
excerpt_separator: S
) -> Self
fn merge_published_date<D: Into<Option<DateTime>>>(
self,
published_date: D
) -> Self
[src]
self,
published_date: D
) -> Self
fn merge_layout<S: Into<Option<String>>>(self, layout: S) -> Self
[src]
fn merge_draft<B: Into<Option<bool>>>(self, draft: B) -> Self
[src]
fn merge_data(self, other_data: Object) -> Self
[src]
fn merge(self, other: Self) -> Self
[src]
fn merge_path<P: AsRef<Path>>(self, relpath: P) -> Self
[src]
fn build(self) -> Result<Frontmatter>
[src]
Trait Implementations
impl Debug for FrontmatterBuilder
[src]
impl Eq for FrontmatterBuilder
[src]
impl PartialEq for FrontmatterBuilder
[src]
fn eq(&self, __arg_0: &FrontmatterBuilder) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FrontmatterBuilder) -> bool
[src]
This method tests for !=
.
impl Default for FrontmatterBuilder
[src]
fn default() -> FrontmatterBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for FrontmatterBuilder
[src]
fn clone(&self) -> FrontmatterBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for FrontmatterBuilder
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Front for FrontmatterBuilder
[src]
impl From<FrontmatterBuilder> for FrontmatterBuilder
[src]
fn from(jk_front: FrontmatterBuilder) -> Self
[src]
Performs the conversion.
impl From<FrontmatterBuilder> for FrontmatterBuilder
[src]
fn from(legacy: FrontmatterBuilder) -> Self
[src]
Performs the conversion.