pub struct Person {
pub meta: Bo4eMeta,
pub salutation: Option<Salutation>,
pub title: Option<Title>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub name_suffix: Option<String>,
pub name_prefix: Option<String>,
pub company_name: Option<String>,
pub birth_date: Option<NaiveDate>,
pub address: Option<Address>,
pub contact_methods: Vec<ContactMethod>,
}Expand description
A natural person.
German: Person
§Example
use bo4e_core::bo::Person;
use bo4e_core::enums::Salutation;
let person = Person {
salutation: Some(Salutation::Mr),
first_name: Some("Max".to_string()),
last_name: Some("Mustermann".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
salutation: Option<Salutation>Salutation (Anrede)
title: Option<Title>Title (Titel)
first_name: Option<String>First name (Vorname)
last_name: Option<String>Last name (Nachname)
name_suffix: Option<String>Name suffix (Namenszusatz)
name_prefix: Option<String>Name prefix (Namenspraefix)
company_name: Option<String>Company name if representing a company (Firma)
birth_date: Option<NaiveDate>Birth date (Geburtsdatum)
address: Option<Address>Primary address (Adresse)
contact_methods: Vec<ContactMethod>Contact methods (Kontaktwege)
Trait Implementations§
Source§impl Bo4eObject for Person
impl Bo4eObject for Person
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl<'de> Deserialize<'de> for Person
impl<'de> Deserialize<'de> for Person
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
impl StructuralPartialEq for Person
Auto Trait Implementations§
impl Freeze for Person
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
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