pub struct TemplateContributor {Show 13 fields
pub contributor: ContributorRole,
pub form: ContributorForm,
pub label: Option<RoleLabel>,
pub name_order: Option<NameOrder>,
pub name_form: Option<NameForm>,
pub delimiter: Option<String>,
pub sort_separator: Option<String>,
pub shorten: Option<ShortenListOptions>,
pub and: Option<AndOptions>,
pub rendering: Rendering,
pub links: Option<LinksConfig>,
pub gender: Option<GrammaticalGender>,
pub custom: Option<HashMap<String, Value>>,
}Expand description
A contributor component for rendering names.
Fields§
§contributor: ContributorRoleWhich contributor role to render (author, editor, etc.).
form: ContributorFormHow to display the contributor (long names, short, with label, etc.).
label: Option<RoleLabel>Optional role label configuration (e.g., “eds.” for editors).
name_order: Option<NameOrder>Override the global name order for this specific component. Use to show editors as “Given Family” even when global setting is “Family, Given”.
name_form: Option<NameForm>Override the name form (e.g., initials, full, family-only) for this specific component.
delimiter: Option<String>Custom delimiter between names (overrides global setting).
sort_separator: Option<String>Delimiter between family and given name when inverted (overrides global setting).
shorten: Option<ShortenListOptions>Shorten the list of names (et al. configuration).
and: Option<AndOptions>Override the conjunction between the last two names.
Use none for bibliography when citation uses text or symbol.
rendering: Rendering§links: Option<LinksConfig>Structured link options (DOI, URL).
gender: Option<GrammaticalGender>Explicit grammatical gender override for role-label agreement.
custom: Option<HashMap<String, Value>>Custom user-defined fields for extensions.
Trait Implementations§
Source§impl Clone for TemplateContributor
impl Clone for TemplateContributor
Source§fn clone(&self) -> TemplateContributor
fn clone(&self) -> TemplateContributor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComponentValues for TemplateContributor
impl ComponentValues for TemplateContributor
Source§fn values<F: OutputFormat<Output = String>>(
&self,
reference: &Reference,
hints: &ProcHints,
options: &RenderOptions<'_>,
) -> Option<ProcValues<F::Output>>
fn values<F: OutputFormat<Output = String>>( &self, reference: &Reference, hints: &ProcHints, options: &RenderOptions<'_>, ) -> Option<ProcValues<F::Output>>
Source§impl Debug for TemplateContributor
impl Debug for TemplateContributor
Source§impl Default for TemplateContributor
impl Default for TemplateContributor
Source§fn default() -> TemplateContributor
fn default() -> TemplateContributor
Source§impl<'de> Deserialize<'de> for TemplateContributor
impl<'de> Deserialize<'de> for TemplateContributor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateContributor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateContributor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TemplateContributor
impl PartialEq for TemplateContributor
Source§fn eq(&self, other: &TemplateContributor) -> bool
fn eq(&self, other: &TemplateContributor) -> bool
self and other values to be equal, and is used by ==.