Struct cobalt::cobalt_model::CollectionBuilder
[−]
[src]
pub struct CollectionBuilder { pub title: Option<String>, pub slug: Option<String>, pub description: Option<String>, pub dir: Option<String>, pub drafts_dir: Option<String>, pub order: SortOrder, pub rss: Option<String>, pub jsonfeed: Option<String>, pub default: FrontmatterBuilder, }
Fields
title: Option<String>
slug: Option<String>
description: Option<String>
dir: Option<String>
drafts_dir: Option<String>
order: SortOrder
rss: Option<String>
jsonfeed: Option<String>
default: FrontmatterBuilder
Methods
impl CollectionBuilder
[src]
fn new() -> Self
[src]
fn merge_frontmatter(self, secondary: FrontmatterBuilder) -> Self
[src]
fn build(self) -> Result<Collection>
[src]
Trait Implementations
impl Clone for CollectionBuilder
[src]
fn clone(&self) -> CollectionBuilder
[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 Default for CollectionBuilder
[src]
fn default() -> CollectionBuilder
[src]
Returns the "default value" for a type. Read more
impl Debug for CollectionBuilder
[src]
impl PartialEq for CollectionBuilder
[src]
fn eq(&self, __arg_0: &CollectionBuilder) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CollectionBuilder) -> bool
[src]
This method tests for !=
.
impl From<PageBuilder> for CollectionBuilder
[src]
fn from(config: PageBuilder) -> Self
[src]
Performs the conversion.
impl From<PostBuilder> for CollectionBuilder
[src]
fn from(config: PostBuilder) -> Self
[src]
Performs the conversion.