pub struct ParsedFile {
pub frontmatter: Mapping,
pub body: String,
}Expand description
A document split into its metadata mapping and its body.
Fields§
§frontmatter: MappingThe metadata block as an ordered map. Empty when the document has none.
body: StringEverything after the metadata block.
Trait Implementations§
Source§impl Clone for ParsedFile
impl Clone for ParsedFile
Source§fn clone(&self) -> ParsedFile
fn clone(&self) -> ParsedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedFile
impl Debug for ParsedFile
Source§impl Default for ParsedFile
impl Default for ParsedFile
Source§fn default() -> ParsedFile
fn default() -> ParsedFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedFile
impl RefUnwindSafe for ParsedFile
impl Send for ParsedFile
impl Sync for ParsedFile
impl Unpin for ParsedFile
impl UnsafeUnpin for ParsedFile
impl UnwindSafe for ParsedFile
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