pub struct RenderOptions<'a> {
pub config: &'a Config,
pub bibliography_config: Option<BibliographyConfig>,
pub locale: &'a Locale,
pub context: RenderContext,
pub mode: CitationMode,
pub suppress_author: bool,
pub locator_raw: Option<&'a CitationLocator>,
pub ref_type: Option<String>,
pub show_semantics: bool,
pub current_template_index: Option<usize>,
pub abbreviation_map: Option<&'a AbbreviationMap>,
}Expand description
Options for rendering.
Fields§
§config: &'a ConfigEffective configuration after style and default resolution.
bibliography_config: Option<BibliographyConfig>Effective bibliography-only configuration when rendering bibliography behavior.
locale: &'a LocaleLocale used for term lookup and locale-sensitive formatting.
context: RenderContextWhether the current render target is a citation or bibliography.
mode: CitationModeCitation mode for the current render operation.
Whether to suppress the author name for this citation.
Set from the citation-level suppress_author flag.
locator_raw: Option<&'a CitationLocator>Optional raw citation locator for rendering via locator config.
ref_type: Option<String>Reference type for optional type-class gating in locator patterns.
show_semantics: boolWhether to output semantic markup (HTML spans, Djot attributes).
current_template_index: Option<usize>The current top-level template index, when propagating preview annotations.
abbreviation_map: Option<&'a AbbreviationMap>Document-level abbreviation map for post-render substitution.
Trait Implementations§
Source§impl<'a> Clone for RenderOptions<'a>
impl<'a> Clone for RenderOptions<'a>
Source§fn clone(&self) -> RenderOptions<'a>
fn clone(&self) -> RenderOptions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more