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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.