pub struct Frontmatter<'a> {
pub title: Option<String>,
pub code_block: Option<CodeBlock<'a>>,
}
Expand description
Metadata stored within a Markdown document
Fields§
§title: Option<String>
The top-level heading’s plain-text contents, if the document began with a top-level heading.
code_block: Option<CodeBlock<'a>>
The frontmatter code block, if detected.
Trait Implementations§
Source§impl<'a> Clone for Frontmatter<'a>
impl<'a> Clone for Frontmatter<'a>
Source§fn clone(&self) -> Frontmatter<'a>
fn clone(&self) -> Frontmatter<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for Frontmatter<'a>
impl<'a> RefUnwindSafe for Frontmatter<'a>
impl<'a> Send for Frontmatter<'a>
impl<'a> Sync for Frontmatter<'a>
impl<'a> Unpin for Frontmatter<'a>
impl<'a> UnwindSafe for Frontmatter<'a>
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