Struct paypal_rs::common::Address [−][src]
pub struct Address { pub address_line_1: Option<String>, pub address_line_2: Option<String>, pub admin_area_2: Option<String>, pub admin_area_1: Option<String>, pub postal_code: Option<String>, pub country_code: String, pub address_details: Option<AddressDetails>, }
Expand description
The address of the payer.
Fields
address_line_1: 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_line_2: 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.
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.
address_details: Option<AddressDetails>
The non-portable additional address details that are sometimes needed for compliance, risk, or other scenarios where fine-grain address information might be needed.
Trait Implementations
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 RefUnwindSafe for Address
impl UnwindSafe for Address