pub struct DocumentOptions {
pub bibliography_groups: Option<Vec<BibliographyGroup>>,
pub sort_partitioning: Option<BibliographySortPartitioning>,
pub integral_name_memory: Option<DocumentIntegralNameOverride>,
pub show_semantics: Option<bool>,
pub inject_ast_indices: Option<bool>,
pub annotations: Option<HashMap<String, String>>,
pub annotation_format: Option<AnnotationFormat>,
pub abbreviation_map: Option<AbbreviationMap>,
}Expand description
Document-level configuration for rendering.
Controls rendering behavior that belongs to the document rather than the style.
Fields§
§bibliography_groups: Option<Vec<BibliographyGroup>>Override or replace style-defined bibliography grouping.
sort_partitioning: Option<BibliographySortPartitioning>Automatic bibliography partitioning by script or language.
integral_name_memory: Option<DocumentIntegralNameOverride>Document-level narrative citation rules.
show_semantics: Option<bool>Whether to output semantic markup (HTML spans, Djot attributes).
inject_ast_indices: Option<bool>Whether to annotate semantic wrappers with source template indices.
annotations: Option<HashMap<String, String>>Reference ID to annotation text mapping.
annotation_format: Option<AnnotationFormat>Format for annotation text (djot, plain, org).
abbreviation_map: Option<AbbreviationMap>Map from full rendered strings to their abbreviations.
Trait Implementations§
Source§impl Clone for DocumentOptions
impl Clone for DocumentOptions
Source§fn clone(&self) -> DocumentOptions
fn clone(&self) -> DocumentOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentOptions
impl Debug for DocumentOptions
Source§impl Default for DocumentOptions
impl Default for DocumentOptions
Source§fn default() -> DocumentOptions
fn default() -> DocumentOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentOptionswhere
DocumentOptions: Default,
impl<'de> Deserialize<'de> for DocumentOptionswhere
DocumentOptions: Default,
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
Auto Trait Implementations§
impl Freeze for DocumentOptions
impl RefUnwindSafe for DocumentOptions
impl Send for DocumentOptions
impl Sync for DocumentOptions
impl Unpin for DocumentOptions
impl UnsafeUnpin for DocumentOptions
impl UnwindSafe for DocumentOptions
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