pub struct Name {
pub form: Option<NameForm>,
pub formatting: Formatting,
pub affixes: Affixes,
/* private fields */
}
Expand description
Configuration of how to print names.
Fields§
§form: Option<NameForm>
Which name parts to display for personal names.
formatting: Formatting
Override formatting style.
affixes: Affixes
Add prefix and suffix.
Implementations§
source§impl Name
impl Name
sourcepub fn name_part_given(&self) -> Option<&NamePart>
pub fn name_part_given(&self) -> Option<&NamePart>
Retrieve NamePart
configuration for the given name.
sourcepub fn name_part_family(&self) -> Option<&NamePart>
pub fn name_part_family(&self) -> Option<&NamePart>
Retrieve NamePart
configuration for the family name.
sourcepub fn options<'s>(
&'s self,
inherited: &'s InheritableNameOptions,
) -> NameOptions<'_>
pub fn options<'s>( &'s self, inherited: &'s InheritableNameOptions, ) -> NameOptions<'_>
Retrieve the NameOptions
for this name.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl ToFormatting for Name
impl ToFormatting for Name
source§fn to_formatting(&self) -> Formatting
fn to_formatting(&self) -> Formatting
Obtain a
Formatting
.impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)