pub struct ProcTemplateComponent {Show 14 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<Arc<Config>>,
pub bibliography_config: Option<Arc<BibliographyConfig>>,
pub item_language: Option<String>,
pub quote_marks: QuoteMarks,
pub sentence_initial: bool,
pub pre_formatted: bool,
pub label_only: 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<Arc<Config>>Optional global configuration.
bibliography_config: Option<Arc<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).
label_only: boolTrue when this component’s rendered text is only a bibliography
numeric label (update_label_mode’s synthetic [label, following]
group with an empty following, e.g. no author). Bibliography
assembly must still write the label text, but must not treat it as
real preceding content for the next component’s separator decision
— the label attaches directly to whatever content actually opens the
entry, exactly as if the label were not there.
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 more