pub struct Parsed {
pub frontmatter: Option<Spanned>,
pub core: CoreFields,
pub body: Body,
pub segments: Segments,
pub body_line: usize,
pub frontmatter_found: bool,
}Expand description
Parsed holds the result of parsing one file.
Fields§
§frontmatter: Option<Spanned>The frontmatter, when the file has one and it parses.
core: CoreFieldsThe core fields.
body: BodyThe body.
segments: SegmentsThe markers.
body_line: usizeThe line the body starts on.
frontmatter_found: boolWhether the file opens with a frontmatter block, parsed or not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parsed
impl<'de> Deserialize<'de> for Parsed
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
impl StructuralPartialEq for Parsed
Auto Trait Implementations§
impl Forget for Parsed
impl Freeze for Parsed
impl Move for Parsed
impl RefUnwindSafe for Parsed
impl Send for Parsed
impl Sync for Parsed
impl Unpin for Parsed
impl UnsafeUnpin for Parsed
impl UnwindSafe for Parsed
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