Skip to main content

Module api

Module api 

Source
Expand description

Interactive document-level API for batch citation formatting. Interactive document-level API for batch citation formatting.

This module provides the Tier 1 format_document API, enabling whole-document citation and bibliography rendering with proper context (note positions, ibid detection, disambiguation).

Re-exports§

pub use forward_compat::UnknownFieldPath;
pub use forward_compat::collect_unknown_field_paths;

Modules§

forward_compat
Forward-compat unknown-field walking for citum check.

Structs§

AbbreviationMap
Document-level map from full rendered strings to their abbreviations.
AnnotationStyle
Controls how annotation text is rendered in an annotated bibliography.
BibliographyEntry
A single bibliography entry.
CitationOccurrence
A citation occurrence in the document.
CitationOccurrenceItem
A single item within a citation occurrence.
DocumentOptions
Document-level configuration for rendering.
EntryMetadata
Metadata extracted from a bibliography entry for interactivity.
FormatDocumentRequest
A request to format a complete document’s citations and bibliography.
FormatDocumentResult
The result of formatting a document.
FormattedBibliography
A formatted bibliography.
FormattedCitation
A single formatted citation.
Warning
A structured diagnostic warning returned alongside formatted output.

Enums§

AnnotationFormat
Markup format for annotation text.
FormatDocumentError
Errors that can occur during document formatting.
OutputFormatKind
Supported output format kinds.
RefsInput
A refs input that can be resolved locally or by an external resolver.
StyleInput
A style reference that can be resolved locally or by an external resolver.
WarningLevel
Severity level for a structured diagnostic.

Functions§

format_document
Format a complete document’s citations and bibliography (convenience wrapper).
format_document_with_resolver
Format a document, resolving the style through an injected resolver.
format_document_with_style
Format a document using an already-resolved style.
unknown_enum_warnings
Scan the style and bibliography for unknown enum variants and term keys.
unknown_reference_class_warnings
Scan the bibliography for unknown reference classes and return compatibility warnings.