pub struct PersonalDetails {
pub first_name: String,
pub middle_name: String,
pub last_name: String,
pub native_first_name: String,
pub native_middle_name: String,
pub native_last_name: String,
pub birthdate: Date,
pub gender: String,
pub country_code: String,
pub residence_country_code: String,
}
Expand description
Contains the user’s personal details
Fields§
§first_name: String
First name of the user written in English; 1-255 characters
middle_name: String
Middle name of the user written in English; 0-255 characters
last_name: String
Last name of the user written in English; 1-255 characters
native_first_name: String
Native first name of the user; 1-255 characters
native_middle_name: String
Native middle name of the user; 0-255 characters
native_last_name: String
Native last name of the user; 1-255 characters
birthdate: Date
Birthdate of the user
gender: String
Gender of the user, “male” or “female”
country_code: String
A two-letter ISO 3166-1 alpha-2 country code of the user’s country
residence_country_code: String
A two-letter ISO 3166-1 alpha-2 country code of the user’s residence country
Trait Implementations§
Source§impl Clone for PersonalDetails
impl Clone for PersonalDetails
Source§fn clone(&self) -> PersonalDetails
fn clone(&self) -> PersonalDetails
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 PersonalDetails
impl Debug for PersonalDetails
Source§impl Default for PersonalDetails
impl Default for PersonalDetails
Source§fn default() -> PersonalDetails
fn default() -> PersonalDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersonalDetails
impl<'de> Deserialize<'de> for PersonalDetails
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 PartialEq for PersonalDetails
impl PartialEq for PersonalDetails
Source§impl Serialize for PersonalDetails
impl Serialize for PersonalDetails
impl StructuralPartialEq for PersonalDetails
Auto Trait Implementations§
impl Freeze for PersonalDetails
impl RefUnwindSafe for PersonalDetails
impl Send for PersonalDetails
impl Sync for PersonalDetails
impl Unpin for PersonalDetails
impl UnwindSafe for PersonalDetails
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