Struct cobalt_config::Collection
source · [−]#[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
sourceimpl Clone for Collection
impl Clone for Collection
sourcefn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Collection
impl Debug for Collection
sourceimpl Default for Collection
impl Default for Collection
sourcefn default() -> Collection
fn default() -> Collection
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Collection where
Collection: Default,
impl<'de> Deserialize<'de> for Collection where
Collection: 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 From<PageCollection> for Collection
impl From<PageCollection> for Collection
sourcefn from(other: PageCollection) -> Collection
fn from(other: PageCollection) -> Collection
Converts to this type from the input type.
sourceimpl From<PostCollection> for Collection
impl From<PostCollection> for Collection
sourcefn from(other: PostCollection) -> Collection
fn from(other: PostCollection) -> Collection
Converts to this type from the input type.
sourceimpl PartialEq<Collection> for Collection
impl PartialEq<Collection> for Collection
sourcefn eq(&self, other: &Collection) -> bool
fn eq(&self, other: &Collection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for Collection
impl Serialize for Collection
impl StructuralPartialEq for Collection
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
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