pub struct CoreFields {Show 14 fields
pub type_: Option<String>,
pub id: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub resource: Option<Resource>,
pub status: Option<Status>,
pub sources: Vec<SourceEntry>,
pub links: Vec<LinkEntry>,
pub verified: Vec<VerifiedEntry>,
pub extra: Vec<(String, Spanned)>,
pub lines: HashMap<String, usize>,
pub problems: Vec<Finding>,
pub present: bool,
}Expand description
The core frontmatter fields of the format specification, each optional, plus the line of each key and the findings that the parser records as it goes on past each bad key.
Fields§
§type_: Option<String>type.
id: Option<String>id.
title: Option<String>title.
description: Option<String>description.
tags.
resource: Option<Resource>resource.
status: Option<Status>status.
sources: Vec<SourceEntry>sources: the entries that parsed as valid maps. The parser drops any
other entry.
links: Vec<LinkEntry>links: the entries that parsed as valid maps. The parser drops any
other entry.
verified: Vec<VerifiedEntry>verified.
extra: Vec<(String, Spanned)>Keys that are not core, as written.
lines: HashMap<String, usize>The line of every present key.
problems: Vec<Finding>The findings about the shape of the fields.
present: boolWhether the frontmatter is present and a map.
Implementations§
Trait Implementations§
Source§impl Clone for CoreFields
impl Clone for CoreFields
Source§impl Debug for CoreFields
impl Debug for CoreFields
Source§impl Default for CoreFields
impl Default for CoreFields
Source§impl<'de> Deserialize<'de> for CoreFields
impl<'de> Deserialize<'de> for CoreFields
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 PartialEq for CoreFields
impl PartialEq for CoreFields
Source§impl Serialize for CoreFields
impl Serialize for CoreFields
impl StructuralPartialEq for CoreFields
Auto Trait Implementations§
impl Forget for CoreFields
impl Freeze for CoreFields
impl Move for CoreFields
impl RefUnwindSafe for CoreFields
impl Send for CoreFields
impl Sync for CoreFields
impl Unpin for CoreFields
impl UnsafeUnpin for CoreFields
impl UnwindSafe for CoreFields
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