pub struct Metadata {
pub title: Option<String>,
pub section: Option<String>,
pub volume: Option<String>,
pub os: Option<String>,
pub arch: Option<String>,
pub name: Option<String>,
pub date: Option<String>,
pub alias_target: Option<String>,
pub has_body: bool,
}Expand description
Metadata copied from a completed libmandoc parse.
Fields§
§title: Option<String>Canonical manual title, normally derived from TH or Dt.
section: Option<String>Native manual category such as 1 or 3p.
volume: Option<String>Manual volume or collection label.
os: Option<String>Operating-system label declared by the page.
arch: Option<String>Architecture qualifier declared by the page.
name: Option<String>Primary display name extracted from the NAME section.
date: Option<String>Normalized source date when libmandoc recognized it.
alias_target: Option<String>Target named by a top-level .so alias page.
has_body: boolWhether the parsed source produced a document body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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 Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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