[−][src]Struct cobalt::cobalt_model::FrontmatterBuilder
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
pagination: Option<PaginationConfigBuilder>
collection: Option<String>
Methods
impl FrontmatterBuilder
[src]
impl FrontmatterBuilder
pub fn new() -> Self | [src] |
pub fn set_permalink<S: Into<Option<String>>>(self, permalink: S) -> 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>>>( | [src] |
pub fn set_excerpt_separator<S: Into<Option<String>>>( | [src] |
pub fn set_published_date<D: Into<Option<DateTime>>>( | [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_permalink<S: Into<Option<String>>>(self, permalink: 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>>>>( | [src] |
pub fn merge_tags<S: Into<Option<Vec<String>>>>(self, tags: S) -> Self | [src] |
pub fn merge_excerpt_separator<S: Into<Option<String>>>( | [src] |
pub fn merge_published_date<D: Into<Option<DateTime>>>( | [src] |
pub fn merge_pagination<S: Into<Option<PaginationConfigBuilder>>>( | [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]
impl Front for FrontmatterBuilder
impl Eq for FrontmatterBuilder
[src]
impl Eq for FrontmatterBuilder
impl Default for FrontmatterBuilder
[src]
impl Default for FrontmatterBuilder
fn default() -> FrontmatterBuilder | [src] |
impl PartialEq<FrontmatterBuilder> for FrontmatterBuilder
[src]
impl PartialEq<FrontmatterBuilder> for FrontmatterBuilder
fn eq(&self, other: &FrontmatterBuilder) -> bool | [src] |
fn ne(&self, other: &FrontmatterBuilder) -> bool | [src] |
impl Clone for FrontmatterBuilder
[src]
impl Clone for FrontmatterBuilder
fn clone(&self) -> FrontmatterBuilder | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for FrontmatterBuilder
[src]
impl Debug for FrontmatterBuilder
impl Display for FrontmatterBuilder
[src]
impl Display for FrontmatterBuilder
impl Serialize for FrontmatterBuilder
[src]
impl Serialize for FrontmatterBuilder
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for FrontmatterBuilder where
FrontmatterBuilder: Default,
[src]
impl<'de> Deserialize<'de> for FrontmatterBuilder where
FrontmatterBuilder: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for FrontmatterBuilder
impl Send for FrontmatterBuilder
impl Sync for FrontmatterBuilder
impl Sync for FrontmatterBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
impl<T> CloneAny for T where
T: Clone + Any,
impl<T> CloneAny for T where
T: Clone + Any,