pub struct Identity {Show 16 fields
pub given_name: String,
pub family_name: String,
pub middle_name: Option<String>,
pub date_of_birth: String,
pub tax_id: Option<String>,
pub tax_id_type: Option<TaxIdType>,
pub country_of_citizenship: Option<String>,
pub country_of_birth: Option<String>,
pub country_of_tax_residence: Option<String>,
pub funding_source: Option<Vec<FundingSource>>,
pub annual_income_min: Option<String>,
pub annual_income_max: Option<String>,
pub liquid_net_worth_min: Option<String>,
pub liquid_net_worth_max: Option<String>,
pub total_net_worth_min: Option<String>,
pub total_net_worth_max: Option<String>,
}Expand description
Identity information for broker account.
Fields§
§given_name: StringGiven (first) name.
family_name: StringFamily (last) name.
middle_name: Option<String>Middle name.
date_of_birth: StringDate of birth (YYYY-MM-DD).
tax_id: Option<String>Tax ID.
tax_id_type: Option<TaxIdType>Tax ID type.
country_of_citizenship: Option<String>Country of citizenship (ISO 3166-1 alpha-3).
country_of_birth: Option<String>Country of birth (ISO 3166-1 alpha-3).
country_of_tax_residence: Option<String>Country of tax residence (ISO 3166-1 alpha-3).
funding_source: Option<Vec<FundingSource>>Funding source.
annual_income_min: Option<String>Annual income minimum in USD.
annual_income_max: Option<String>Annual income maximum in USD.
liquid_net_worth_min: Option<String>Liquid net worth minimum in USD.
liquid_net_worth_max: Option<String>Liquid net worth maximum in USD.
total_net_worth_min: Option<String>Total net worth minimum in USD.
total_net_worth_max: Option<String>Total net worth maximum in USD.
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn new(given_name: &str, family_name: &str, date_of_birth: &str) -> Identity
pub fn new(given_name: &str, family_name: &str, date_of_birth: &str) -> Identity
Create new identity information.
Sourcepub fn citizenship(self, country: &str) -> Identity
pub fn citizenship(self, country: &str) -> Identity
Set country of citizenship.
Sourcepub fn funding_sources(self, sources: Vec<FundingSource>) -> Identity
pub fn funding_sources(self, sources: Vec<FundingSource>) -> Identity
Set funding sources.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Identity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Identity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Identity
impl Serialize for Identity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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