pub struct FrontMatter {Show 15 fields
pub title: Option<String>,
pub doc_type: Option<DocType>,
pub status: Option<DocStatus>,
pub scope: Option<Scope>,
pub tags: Option<Vec<String>>,
pub created: Option<String>,
pub updated: Option<String>,
pub author: Option<String>,
pub confidence: Option<Confidence>,
pub related: Option<Vec<Related>>,
pub version: Option<u32>,
pub contributors: Option<Vec<String>>,
pub workspace: Option<String>,
pub decision: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
YAML front matter fields.
Known fields are typed; unknown fields are captured in extra.
Fields§
§title: Option<String>§doc_type: Option<DocType>§status: Option<DocStatus>§scope: Option<Scope>§created: Option<String>§updated: Option<String>§confidence: Option<Confidence>§version: Option<u32>§contributors: Option<Vec<String>>§workspace: Option<String>§decision: Option<String>§extra: HashMap<String, Value>Any front matter fields not covered by typed fields above.
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
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<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