pub struct NamesOverrides<'a> {
pub name_order: Option<&'a NameOrder>,
pub sort_separator: Option<&'a String>,
pub shorten: Option<&'a ShortenListOptions>,
pub and: Option<&'a AndOptions>,
pub initialize_with: Option<&'a String>,
pub name_form: Option<NameForm>,
}Expand description
Per-call template overrides passed to format_names.
Bundles the optional override parameters that come from a
TemplateContributor so that call sites do not need to spell out each
one individually.
Fields§
§name_order: Option<&'a NameOrder>Override for name display order (given-first vs family-first).
sort_separator: Option<&'a String>Override for the sort separator (e.g. "," or " ").
shorten: Option<&'a ShortenListOptions>Override for et-al shortening options.
and: Option<&'a AndOptions>Override for the “and” conjunction between names.
initialize_with: Option<&'a String>Override for the initialize-with string used to form initials.
name_form: Option<NameForm>Override for the name form (full, initials, family-only).
Auto Trait Implementations§
impl<'a> Freeze for NamesOverrides<'a>
impl<'a> RefUnwindSafe for NamesOverrides<'a>
impl<'a> Send for NamesOverrides<'a>
impl<'a> Sync for NamesOverrides<'a>
impl<'a> Unpin for NamesOverrides<'a>
impl<'a> UnsafeUnpin for NamesOverrides<'a>
impl<'a> UnwindSafe for NamesOverrides<'a>
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