Struct cobalt::cobalt_model::Frontmatter
source · pub struct Frontmatter {Show 17 fields
pub permalink: Permalink,
pub slug: KString,
pub title: KString,
pub description: Option<KString>,
pub excerpt: Option<KString>,
pub categories: Vec<KString>,
pub tags: Option<Vec<KString>>,
pub excerpt_separator: KString,
pub published_date: Option<DateTime>,
pub format: SourceFormat,
pub templated: bool,
pub layout: Option<KString>,
pub is_draft: bool,
pub weight: i32,
pub collection: KString,
pub data: Object,
pub pagination: Option<PaginationConfig>,
}
Fields§
§permalink: Permalink
§slug: KString
§title: KString
§description: Option<KString>
§excerpt: Option<KString>
§categories: Vec<KString>
§excerpt_separator: KString
§published_date: Option<DateTime>
§format: SourceFormat
§templated: bool
§layout: Option<KString>
§is_draft: bool
§weight: i32
§collection: KString
§data: Object
§pagination: Option<PaginationConfig>
Implementations§
source§impl Frontmatter
impl Frontmatter
pub fn from_config(config: Frontmatter) -> Result<Frontmatter>
Trait Implementations§
source§impl Clone for Frontmatter
impl Clone for Frontmatter
source§fn clone(&self) -> Frontmatter
fn clone(&self) -> Frontmatter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Frontmatter
impl Debug for Frontmatter
source§impl Default for Frontmatter
impl Default for Frontmatter
source§fn default() -> Frontmatter
fn default() -> Frontmatter
Returns the “default value” for a type. Read more
source§impl Display for Frontmatter
impl Display for Frontmatter
source§impl PartialEq for Frontmatter
impl PartialEq for Frontmatter
source§fn eq(&self, other: &Frontmatter) -> bool
fn eq(&self, other: &Frontmatter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Frontmatter
impl Serialize for Frontmatter
impl Eq for Frontmatter
impl StructuralPartialEq for Frontmatter
Auto Trait Implementations§
impl RefUnwindSafe for Frontmatter
impl Send for Frontmatter
impl Sync for Frontmatter
impl Unpin for Frontmatter
impl UnwindSafe for Frontmatter
Blanket Implementations§
§impl<V> AdhocValue for V
impl<V> AdhocValue for V
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.