Struct cobalt_config::Config [−][src]
#[non_exhaustive]pub struct Config {Show 16 fields
pub root: PathBuf,
pub source: RelPath,
pub destination: RelPath,
pub abs_dest: Option<PathBuf>,
pub include_drafts: bool,
pub default: Frontmatter,
pub pages: PageCollection,
pub posts: PostCollection,
pub site: Site,
pub template_extensions: Vec<KString>,
pub ignore: Vec<KString>,
pub syntax_highlight: SyntaxHighlight,
pub layouts_dir: &'static str,
pub includes_dir: &'static str,
pub assets: Assets,
pub minify: Minify,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.root: PathBuf
source: RelPath
destination: RelPath
abs_dest: Option<PathBuf>
include_drafts: bool
default: Frontmatter
pages: PageCollection
posts: PostCollection
site: Site
template_extensions: Vec<KString>
ignore: Vec<KString>
syntax_highlight: SyntaxHighlight
layouts_dir: &'static str
includes_dir: &'static str
assets: Assets
minify: Minify
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Clone the value
Mutably borrows from an owned value. Read more