Struct cobalt_config::Collection [−][src]
#[non_exhaustive]pub struct Collection {
pub title: Option<KString>,
pub description: Option<KString>,
pub dir: Option<RelPath>,
pub drafts_dir: Option<RelPath>,
pub order: SortOrder,
pub rss: Option<RelPath>,
pub jsonfeed: Option<RelPath>,
pub publish_date_in_filename: bool,
pub default: Frontmatter,
}
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.title: Option<KString>
description: Option<KString>
dir: Option<RelPath>
drafts_dir: Option<RelPath>
order: SortOrder
rss: Option<RelPath>
jsonfeed: Option<RelPath>
publish_date_in_filename: bool
default: Frontmatter
Trait Implementations
Returns the “default value” for a type. Read more
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
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
Blanket Implementations
Mutably borrows from an owned value. Read more