pub struct CardAddressPortable {
pub address_line1: Option<String>,
pub address_line2: Option<String>,
pub admin_area_2: Option<String>,
pub admin_area_1: Option<String>,
pub postal_code: Option<String>,
pub country_code: String,
}
Fields§
§address_line1: Option<String>
The first line of the address. For example, number or street. For example, 173 Drury Lane. Required for data entry and compliance and risk checks. Must contain the full address.
address_line2: Option<String>
The second line of the address. For example, suite or apartment number. */
admin_area_2: Option<String>
A city, town, or village. Smaller than admin_area_level_1. */
admin_area_1: Option<String>
The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. Format for postal delivery. For example, CA and not California. Value, by country, is:
- UK. A county.
- US. A state.
- Canada. A province.
- Japan. A prefecture.
- Switzerland. A kanton.
postal_code: Option<String>
The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
country_code: String
The two-character ISO 3166-1 code that identifies the country or region. */
Trait Implementations§
source§impl Clone for CardAddressPortable
impl Clone for CardAddressPortable
source§fn clone(&self) -> CardAddressPortable
fn clone(&self) -> CardAddressPortable
Returns a copy 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 CardAddressPortable
impl Debug for CardAddressPortable
source§impl Default for CardAddressPortable
impl Default for CardAddressPortable
source§fn default() -> CardAddressPortable
fn default() -> CardAddressPortable
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CardAddressPortable
impl<'de> Deserialize<'de> for CardAddressPortable
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