pub struct ProcTemplateComponent {
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<Config>,
pub bibliography_config: Option<BibliographyConfig>,
pub item_language: Option<String>,
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<Config>Optional global configuration.
bibliography_config: Option<BibliographyConfig>Optional bibliography-only configuration.
item_language: Option<String>Effective language for this rendered component.
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
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 ProcTemplateComponent
impl Debug for ProcTemplateComponent
Source§impl Default for ProcTemplateComponent
impl Default for ProcTemplateComponent
Source§fn default() -> ProcTemplateComponent
fn default() -> ProcTemplateComponent
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProcTemplateComponent
impl PartialEq for ProcTemplateComponent
Source§fn eq(&self, other: &ProcTemplateComponent) -> bool
fn eq(&self, other: &ProcTemplateComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProcTemplateComponent
Auto Trait Implementations§
impl Freeze for ProcTemplateComponent
impl RefUnwindSafe for ProcTemplateComponent
impl Send for ProcTemplateComponent
impl Sync for ProcTemplateComponent
impl Unpin for ProcTemplateComponent
impl UnsafeUnpin for ProcTemplateComponent
impl UnwindSafe for ProcTemplateComponent
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