Struct cobalt_config::Config
source · [−]#[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
sourceimpl<'de> Deserialize<'de> for Config where
Config: Default,
impl<'de> Deserialize<'de> for Config where
Config: Default,
sourcefn 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
sourceimpl PartialEq<Config> for Config
impl PartialEq<Config> for Config
impl StructuralPartialEq for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<V> AdhocValue for V where
V: 'static + Clone + Display + Debug + Send + Sync,
impl<V> AdhocValue for V where
V: 'static + Clone + Display + Debug + Send + Sync,
sourcefn clone_box(&self) -> Box<dyn AdhocValue + 'static, Global>
fn clone_box(&self) -> Box<dyn AdhocValue + 'static, Global>
Clone the value
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more