pub struct RawFrontmatter {Show 22 fields
pub title: Option<String>,
pub version: Option<f64>,
pub status: Option<String>,
pub created: Option<NaiveDate>,
pub last_updated: Option<NaiveDate>,
pub author: Option<String>,
pub owner: Option<String>,
pub reviewers: Option<Vec<String>>,
pub next_review: Option<NaiveDate>,
pub tags: Option<Vec<String>>,
pub related_docs: Option<Vec<String>>,
pub supersedes: Option<String>,
pub superseded_by: Option<String>,
pub doc_id: Option<u32>,
pub decision_date: Option<NaiveDate>,
pub implementation_pr: Option<u32>,
pub related_issues: Option<Vec<u32>>,
pub doc_type: Option<String>,
pub may_become_design_doc: Option<bool>,
pub archived_date: Option<NaiveDate>,
pub archived_reason: Option<String>,
pub historical_value: Option<String>,
}Expand description
Raw frontmatter deserialized from YAML. All fields optional to handle any document category (active, design, research, archive).
Fields§
§title: Option<String>§version: Option<f64>§status: Option<String>§created: Option<NaiveDate>§last_updated: Option<NaiveDate>§owner: Option<String>§reviewers: Option<Vec<String>>§next_review: Option<NaiveDate>§supersedes: Option<String>§superseded_by: Option<String>§doc_id: Option<u32>§decision_date: Option<NaiveDate>§implementation_pr: Option<u32>§doc_type: Option<String>§may_become_design_doc: Option<bool>§archived_date: Option<NaiveDate>§archived_reason: Option<String>§historical_value: Option<String>Trait Implementations§
Source§impl Clone for RawFrontmatter
impl Clone for RawFrontmatter
Source§fn clone(&self) -> RawFrontmatter
fn clone(&self) -> RawFrontmatter
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 RawFrontmatter
impl Debug for RawFrontmatter
Source§impl Default for RawFrontmatter
impl Default for RawFrontmatter
Source§fn default() -> RawFrontmatter
fn default() -> RawFrontmatter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RawFrontmatterwhere
RawFrontmatter: Default,
impl<'de> Deserialize<'de> for RawFrontmatterwhere
RawFrontmatter: 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 RawFrontmatter
impl RefUnwindSafe for RawFrontmatter
impl Send for RawFrontmatter
impl Sync for RawFrontmatter
impl Unpin for RawFrontmatter
impl UnsafeUnpin for RawFrontmatter
impl UnwindSafe for RawFrontmatter
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