[−][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>
weight: Option<i32>
data: Object
pagination: Option<PaginationConfigBuilder>
collection: Option<String>
Implementations
impl FrontmatterBuilder
[src]
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>>>(
self,
pagination: S
) -> Self
[src]
self,
pagination: S
) -> Self
pub fn set_excerpt_separator<S: Into<Option<String>>>(
self,
excerpt_separator: S
) -> Self
[src]
self,
excerpt_separator: S
) -> Self
pub fn set_published_date<D: Into<Option<DateTime>>>(
self,
published_date: D
) -> Self
[src]
self,
published_date: D
) -> Self
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_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>>>>(
self,
categories: S
) -> Self
[src]
self,
categories: S
) -> Self
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]
self,
excerpt_separator: S
) -> Self
pub fn merge_published_date<D: Into<Option<DateTime>>>(
self,
published_date: D
) -> Self
[src]
self,
published_date: D
) -> Self
pub fn merge_pagination<S: Into<Option<PaginationConfigBuilder>>>(
self,
secondary: S
) -> Self
[src]
self,
secondary: S
) -> Self
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]
fn clone(&self) -> FrontmatterBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FrontmatterBuilder
[src]
impl Default for FrontmatterBuilder
[src]
fn default() -> FrontmatterBuilder
[src]
impl<'de> Deserialize<'de> for FrontmatterBuilder where
FrontmatterBuilder: Default,
[src]
FrontmatterBuilder: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for FrontmatterBuilder
[src]
impl Eq for FrontmatterBuilder
[src]
impl Front for FrontmatterBuilder
[src]
impl PartialEq<FrontmatterBuilder> for FrontmatterBuilder
[src]
fn eq(&self, other: &FrontmatterBuilder) -> bool
[src]
fn ne(&self, other: &FrontmatterBuilder) -> bool
[src]
impl Serialize for FrontmatterBuilder
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for FrontmatterBuilder
[src]
impl StructuralPartialEq for FrontmatterBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for FrontmatterBuilder
impl Send for FrontmatterBuilder
impl Sync for FrontmatterBuilder
impl Unpin for FrontmatterBuilder
impl UnwindSafe for FrontmatterBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,