pub struct Frontmatter {Show 17 fields
pub permalink: Option<Permalink>,
pub slug: Option<KString>,
pub title: Option<KString>,
pub description: Option<KString>,
pub excerpt: Option<KString>,
pub categories: Option<Vec<KString>>,
pub tags: Option<Vec<KString>>,
pub excerpt_separator: Option<KString>,
pub published_date: Option<DateTime>,
pub format: Option<SourceFormat>,
pub templated: Option<bool>,
pub layout: Option<KString>,
pub is_draft: Option<bool>,
pub weight: Option<i32>,
pub data: Object,
pub pagination: Option<Pagination>,
pub collection: Option<KString>,
}Fields§
§permalink: Option<Permalink>§slug: Option<KString>§title: Option<KString>§description: Option<KString>§excerpt: Option<KString>§categories: Option<Vec<KString>>§excerpt_separator: Option<KString>§published_date: Option<DateTime>§format: Option<SourceFormat>§templated: Option<bool>§layout: Option<KString>§is_draft: Option<bool>§weight: Option<i32>§data: Object§pagination: Option<Pagination>§collection: Option<KString>Implementations§
Source§impl Frontmatter
impl Frontmatter
pub fn empty() -> Self
pub fn merge_path(self, relpath: &RelativePath) -> Self
pub fn merge(self, other: &Self) -> Self
Trait Implementations§
Source§impl Clone for Frontmatter
impl Clone for Frontmatter
Source§fn clone(&self) -> Frontmatter
fn clone(&self) -> Frontmatter
Returns a duplicate 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<'de> Deserialize<'de> for Frontmatterwhere
Frontmatter: Default,
impl<'de> Deserialize<'de> for Frontmatterwhere
Frontmatter: Default,
Source§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
Source§impl Display for Frontmatter
impl Display for Frontmatter
Source§impl PartialEq for Frontmatter
impl PartialEq for Frontmatter
Source§impl Serialize for Frontmatter
impl Serialize for Frontmatter
impl Eq for Frontmatter
impl StructuralPartialEq for Frontmatter
Auto Trait Implementations§
impl Freeze for Frontmatter
impl RefUnwindSafe for Frontmatter
impl Send for Frontmatter
impl Sync for Frontmatter
impl Unpin for Frontmatter
impl UnwindSafe for Frontmatter
Blanket Implementations§
Source§impl<V> AdhocValue for V
impl<V> AdhocValue for V
Source§fn clone_box(&self) -> Box<dyn AdhocValue>
fn clone_box(&self) -> Box<dyn AdhocValue>
Clone the value
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more