pub struct Metadata<'a> {
pub entries: Vec<(CowStr<'a>, AttrValue<'a>)>,
pub span: Span,
}Expand description
Document metadata from the --- meta block.
Metadata provides key-value pairs for document properties like title, author, date, tags, etc.
Fields§
§entries: Vec<(CowStr<'a>, AttrValue<'a>)>Key-value entries in declaration order.
span: SpanSource span of the metadata block.
Trait Implementations§
impl<'a> StructuralPartialEq for Metadata<'a>
Auto Trait Implementations§
impl<'a> Freeze for Metadata<'a>
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> Send for Metadata<'a>
impl<'a> Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'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