Struct cobalt::ConfigBuilder [−][src]
pub struct ConfigBuilder { pub root: PathBuf, pub source: String, pub destination: String, pub abs_dest: Option<PathBuf>, pub include_drafts: bool, pub default: FrontmatterBuilder, pub pages: PageConfig, pub posts: PostConfig, pub site: SiteConfig, pub template_extensions: Vec<String>, pub ignore: Vec<String>, pub syntax_highlight: SyntaxHighlight, pub layouts_dir: &'static str, pub includes_dir: &'static str, pub assets: AssetsConfig, }
Fields
root: PathBuf
source: String
destination: String
abs_dest: Option<PathBuf>
include_drafts: bool
default: FrontmatterBuilder
pages: PageConfig
posts: PostConfig
site: SiteConfig
template_extensions: Vec<String>
ignore: Vec<String>
syntax_highlight: SyntaxHighlight
layouts_dir: &'static str
includes_dir: &'static str
assets: AssetsConfig
Methods
impl ConfigBuilder
[src]
impl ConfigBuilder
pub fn from_file<P: Into<PathBuf>>(path: P) -> Result<ConfigBuilder>
[src]
pub fn from_file<P: Into<PathBuf>>(path: P) -> Result<ConfigBuilder>
pub fn from_cwd<P: Into<PathBuf>>(cwd: P) -> Result<ConfigBuilder>
[src]
pub fn from_cwd<P: Into<PathBuf>>(cwd: P) -> Result<ConfigBuilder>
pub fn build(self) -> Result<Config>
[src]
pub fn build(self) -> Result<Config>
Trait Implementations
impl Debug for ConfigBuilder
[src]
impl Debug for ConfigBuilder
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ConfigBuilder
[src]
impl Clone for ConfigBuilder
fn clone(&self) -> ConfigBuilder
[src]
fn clone(&self) -> ConfigBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ConfigBuilder
[src]
impl PartialEq for ConfigBuilder
fn eq(&self, other: &ConfigBuilder) -> bool
[src]
fn eq(&self, other: &ConfigBuilder) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConfigBuilder) -> bool
[src]
fn ne(&self, other: &ConfigBuilder) -> bool
This method tests for !=
.
impl Default for ConfigBuilder
[src]
impl Default for ConfigBuilder
fn default() -> ConfigBuilder
[src]
fn default() -> ConfigBuilder
Returns the "default value" for a type. Read more
impl Display for ConfigBuilder
[src]
impl Display for ConfigBuilder
Auto Trait Implementations
impl Send for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Sync for ConfigBuilder