Struct cobalt_config::PostCollection
source · [−]#[non_exhaustive]pub struct PostCollection {
pub title: Option<KString>,
pub description: Option<KString>,
pub dir: 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: 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 PostCollection
impl Clone for PostCollection
sourcefn clone(&self) -> PostCollection
fn clone(&self) -> PostCollection
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 PostCollection
impl Debug for PostCollection
sourceimpl Default for PostCollection
impl Default for PostCollection
sourceimpl<'de> Deserialize<'de> for PostCollection where
PostCollection: Default,
impl<'de> Deserialize<'de> for PostCollection where
PostCollection: 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<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<PostCollection> for PostCollection
impl PartialEq<PostCollection> for PostCollection
sourcefn eq(&self, other: &PostCollection) -> bool
fn eq(&self, other: &PostCollection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for PostCollection
impl Serialize for PostCollection
impl StructuralPartialEq for PostCollection
Auto Trait Implementations
impl RefUnwindSafe for PostCollection
impl Send for PostCollection
impl Sync for PostCollection
impl Unpin for PostCollection
impl UnwindSafe for PostCollection
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