pub struct ParsedDocument {
pub citations: Vec<ParsedCitation>,
pub manual_note_order: Vec<String>,
pub bibliography_blocks: Vec<BibliographyBlock>,
pub frontmatter_groups: Option<Vec<BibliographyGroup>>,
pub frontmatter_integral_name_memory: Option<DocumentIntegralNameOverride>,
pub frontmatter_org_abbreviation_memory: Option<DocumentOrgAbbreviationOverride>,
pub frontmatter_options: Option<DocumentOptionsOverride>,
pub frontmatter_error: Option<String>,
pub body_start: usize,
/* private fields */
}Expand description
Structured output from a document parser.
Fields§
§citations: Vec<ParsedCitation>Citation markers discovered in source order.
manual_note_order: Vec<String>Manual footnote labels in the order they appear in the document.
bibliography_blocks: Vec<BibliographyBlock>Bibliography blocks found in the document, in source order.
frontmatter_groups: Option<Vec<BibliographyGroup>>Bibliography groups from YAML frontmatter.
frontmatter_integral_name_memory: Option<DocumentIntegralNameOverride>Integral-name-memory override from YAML frontmatter (legacy top-level field).
frontmatter_org_abbreviation_memory: Option<DocumentOrgAbbreviationOverride>Org-abbreviation-memory override from YAML frontmatter (legacy top-level field).
Superseded by options.org_abbreviation_memory when both are present.
frontmatter_options: Option<DocumentOptionsOverride>Full options override from YAML frontmatter options: block.
When options.integral_name_memory is Some, it takes precedence over
the legacy top-level frontmatter_integral_name_memory.
When options.org_abbreviation_memory is Some, it takes precedence over
the legacy top-level frontmatter_org_abbreviation_memory.
frontmatter_error: Option<String>Non-empty when the frontmatter --- block failed to deserialize.
The pipeline treats this as a hard error: it prints the message and exits rather than proceeding silently without frontmatter data.
body_start: usizeByte offset where the document body starts (past any frontmatter).
Trait Implementations§
Source§impl Clone for ParsedDocument
impl Clone for ParsedDocument
Source§fn clone(&self) -> ParsedDocument
fn clone(&self) -> ParsedDocument
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more