pub struct PersonInfo {
pub id: Uuid,
pub first_name: String,
pub last_name: String,
pub birth_date: Option<String>,
pub national_id: Option<String>,
pub country_of_issue: Option<String>,
pub email: Option<String>,
pub phone_country_code: Option<String>,
pub phone_number: Option<String>,
pub address: Address,
}Expand description
Person information structure
Fields§
§id: Uuid§first_name: String§last_name: String§birth_date: Option<String>§national_id: Option<String>§country_of_issue: Option<String>§email: Option<String>§phone_country_code: Option<String>§phone_number: Option<String>§address: AddressTrait Implementations§
Source§impl Clone for PersonInfo
impl Clone for PersonInfo
Source§fn clone(&self) -> PersonInfo
fn clone(&self) -> PersonInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersonInfo
impl Debug for PersonInfo
Source§impl<'de> Deserialize<'de> for PersonInfo
impl<'de> Deserialize<'de> for PersonInfo
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
Auto Trait Implementations§
impl Freeze for PersonInfo
impl RefUnwindSafe for PersonInfo
impl Send for PersonInfo
impl Sync for PersonInfo
impl Unpin for PersonInfo
impl UnwindSafe for PersonInfo
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