[][src]Struct paypal::Address

pub struct Address {
    pub line1: String,
    pub line2: Option<String>,
    pub city: Option<String>,
    pub country_code: String,
    pub postal_code: Option<String>,
    pub state: Option<String>,
    pub phone: Option<String>,
    pub normalization_status: Option<NormalizationStatus>,
    pub _type: Option<String>,
}

Represents an address.

Fields

line1: String

The first line of the address. For example, number, street, and so on.

line2: Option<String>

The second line of the address. For example, suite or apartment number.

city: Option<String>

The city name.

country_code: String

The two-character ISO 3166-1 code that identifies the country or region.

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.

state: Option<String>

The code for a US state or the equivalent for other countries. Required for transactions if the address is in one of these countries: Argentina, Brazil, Canada, China, India, Italy, Japan, Mexico, Thailand, or United States. Maximum length is 40 single-byte characters.

phone: Option<String>

The phone number, in E.123 format. Maximum length is 50 characters.

normalization_status: Option<NormalizationStatus>

The address normalization status.

_type: Option<String>

The type of address. For example, HOME_OR_WORK, GIFT, and so on.

Trait Implementations

impl Debug for Address[src]

impl Serialize for Address[src]

impl<'de> Deserialize<'de> for Address[src]

Auto Trait Implementations

impl Sync for Address

impl Unpin for Address

impl Send for Address

impl UnwindSafe for Address

impl RefUnwindSafe for Address

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err