[][src]Struct cobalt::ConfigBuilder

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: PathBufsource: Stringdestination: Stringabs_dest: Option<PathBuf>include_drafts: booldefault: FrontmatterBuilderpages: PageConfigposts: PostConfigsite: SiteConfigtemplate_extensions: Vec<String>ignore: Vec<String>syntax_highlight: SyntaxHighlightlayouts_dir: &'static strincludes_dir: &'static strassets: AssetsConfig

Implementations

impl ConfigBuilder[src]

pub fn from_file<P: Into<PathBuf>>(path: P) -> Result<ConfigBuilder>[src]

pub fn from_cwd<P: Into<PathBuf>>(cwd: P) -> Result<ConfigBuilder>[src]

pub fn build(self) -> Result<Config>[src]

Trait Implementations

impl Clone for ConfigBuilder[src]

impl Debug for ConfigBuilder[src]

impl Default for ConfigBuilder[src]

impl<'de> Deserialize<'de> for ConfigBuilder where
    ConfigBuilder: Default
[src]

impl Display for ConfigBuilder[src]

impl PartialEq<ConfigBuilder> for ConfigBuilder[src]

impl Serialize for ConfigBuilder[src]

impl StructuralPartialEq for ConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.