pub struct ProcTemplateComponent {Show 13 fields
pub template_component: TemplateComponent,
pub template_index: Option<usize>,
pub value: String,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub url: Option<String>,
pub ref_type: Option<String>,
pub config: Option<Rc<Config>>,
pub bibliography_config: Option<Rc<BibliographyConfig>>,
pub item_language: Option<String>,
pub quote_marks: QuoteMarks,
pub sentence_initial: bool,
pub pre_formatted: bool,
}Expand description
A processed template component with its rendered value.
Fields§
§template_component: TemplateComponentThe original template component (for rendering instructions).
template_index: Option<usize>The 0-based source index in the active layout template, when requested.
value: StringThe processed values.
prefix: Option<String>Optional prefix from value extraction.
suffix: Option<String>Optional suffix from value extraction.
url: Option<String>Optional URL for hyperlinking.
ref_type: Option<String>Reference type for type-specific overrides.
config: Option<Rc<Config>>Optional global configuration.
bibliography_config: Option<Rc<BibliographyConfig>>Optional bibliography-only configuration.
item_language: Option<String>Effective language for this rendered component.
quote_marks: QuoteMarksLocale-resolved quote mark characters, threaded from the active Locale’s
GrammarOptions so quote/wrap: quotes
render the style’s actual quotation convention instead of a hardcoded default.
sentence_initial: boolWhether this component begins a sentence according to processor-owned render context.
pre_formatted: boolWhether the value is already pre-formatted (e.g. from a List or substitution).
Trait Implementations§
Source§impl Clone for ProcTemplateComponent
impl Clone for ProcTemplateComponent
Source§fn clone(&self) -> ProcTemplateComponent
fn clone(&self) -> ProcTemplateComponent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProcTemplateComponent
impl Debug for ProcTemplateComponent
Source§impl Default for ProcTemplateComponent
impl Default for ProcTemplateComponent
Source§fn default() -> ProcTemplateComponent
fn default() -> ProcTemplateComponent
Source§impl PartialEq for ProcTemplateComponent
impl PartialEq for ProcTemplateComponent
Source§fn eq(&self, other: &ProcTemplateComponent) -> bool
fn eq(&self, other: &ProcTemplateComponent) -> bool
self and other values to be equal, and is used by ==.