pub struct PaperMeta {
pub title: Option<String>,
pub authors: Vec<String>,
pub year: Option<String>,
pub venue: Option<String>,
pub doi: Option<String>,
pub abstract_: Option<String>,
pub keywords: Vec<String>,
}Expand description
Paper-level metadata, parsed from PAPER.md YAML frontmatter.
Every field is optional: a PAPER.md with no frontmatter fence still yields
a PaperMeta carrying only the title (from the first # H1). year is
normalized to a String even when the source encodes it as an integer.
Fields§
§title: Option<String>Paper title.
Author names, in source order.
year: Option<String>Publication year, normalized from int or string.
venue: Option<String>Venue string.
doi: Option<String>DOI or arXiv id. None when the source is null or absent.
abstract_: Option<String>Abstract text (abstract in the source).
keywords: Vec<String>Keyword list, in source order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PaperMeta
impl<'de> Deserialize<'de> for PaperMeta
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 PaperMeta
Auto Trait Implementations§
impl Freeze for PaperMeta
impl RefUnwindSafe for PaperMeta
impl Send for PaperMeta
impl Sync for PaperMeta
impl Unpin for PaperMeta
impl UnsafeUnpin for PaperMeta
impl UnwindSafe for PaperMeta
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