[][src]Struct google_people1::Address

pub struct Address {
    pub city: Option<String>,
    pub country_code: Option<String>,
    pub formatted_type: Option<String>,
    pub formatted_value: Option<String>,
    pub region: Option<String>,
    pub po_box: Option<String>,
    pub street_address: Option<String>,
    pub country: Option<String>,
    pub postal_code: Option<String>,
    pub extended_address: Option<String>,
    pub type_: Option<String>,
    pub metadata: Option<FieldMetadata>,
}

A person's physical address. May be a P.O. box or street address. All fields are optional.

This type is not used in any activity, and only used as part of another schema.

Fields

city: Option<String>

The city of the address.

country_code: Option<String>

The ISO 3166-1 alpha-2 country code of the address.

formatted_type: Option<String>

The read-only type of the address translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale.

formatted_value: Option<String>

The unstructured value of the address. If this is not set by the user it will be automatically constructed from structured values.

region: Option<String>

The region of the address; for example, the state or province.

po_box: Option<String>

The P.O. box of the address.

street_address: Option<String>

The street address.

country: Option<String>

The country of the address.

postal_code: Option<String>

The postal code of the address.

extended_address: Option<String>

The extended address of the address; for example, the apartment number.

type_: Option<String>

The type of the address. The type can be custom or one of these predefined values:

  • home
  • work
  • other
metadata: Option<FieldMetadata>

Metadata about the address.

Trait Implementations

impl Part for Address[src]

impl Default for Address[src]

impl Clone for Address[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Address[src]

impl Serialize for Address[src]

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

Auto Trait Implementations

impl Send for Address

impl Unpin for Address

impl Sync for Address

impl UnwindSafe for Address

impl RefUnwindSafe for Address

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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