pub struct TemplateContributor {Show 15 fields
pub contributor: ContributorRoles,
pub form: ContributorForm,
pub fallback: Option<Vec<TemplateComponent>>,
pub label: Option<RoleLabel>,
pub merge: Option<ContributorMerge>,
pub name_order: Option<NameOrder>,
pub name_form: Option<NameForm>,
pub delimiter: Option<DelimiterPunctuation>,
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: ContributorRolesWhich contributor role or ordered role list to render.
form: ContributorFormHow to display the contributor (long names, short, with label, etc.).
fallback: Option<Vec<TemplateComponent>>Components rendered when the author slot has no contributor, no
title/editor/translator substitute matched, and substitute.template
is exhausted — e.g. message: term.anonymous for GB/T 7714’s 佚名
placeholder. Only consulted for contributor: author; other roles
(editor, translator, …) are unaffected. Mirrors
TemplateDate.fallback in shape and in the “tried in order, first
non-empty wins” semantics. See csl26-6eak.
label: Option<RoleLabel>Optional role label configuration (e.g., “eds.” for editors).
merge: Option<ContributorMerge>Configuration used when contributor is an ordered role list.
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<DelimiterPunctuation>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 more