[][src]Struct google_admin1_directory::BuildingAddress

pub struct BuildingAddress {
    pub language_code: Option<String>,
    pub administrative_area: Option<String>,
    pub region_code: Option<String>,
    pub locality: Option<String>,
    pub postal_code: Option<String>,
    pub sublocality: Option<String>,
    pub address_lines: Option<Vec<String>>,
}

JSON template for the postal address of a building in Directory API.

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

Fields

language_code: Option<String>

Optional. BCP-47 language code of the contents of this address (if known).

administrative_area: Option<String>

Optional. Highest administrative subdivision which is used for postal addresses of a country or region.

region_code: Option<String>

Required. CLDR region code of the country/region of the address.

locality: Option<String>

Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use addressLines.

postal_code: Option<String>

Optional. Postal code of the address.

sublocality: Option<String>

Optional. Sublocality of the address.

address_lines: Option<Vec<String>>

Unstructured address lines describing the lower levels of an address.

Trait Implementations

impl Clone for BuildingAddress[src]

impl Debug for BuildingAddress[src]

impl Default for BuildingAddress[src]

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

impl Part for BuildingAddress[src]

impl Serialize for BuildingAddress[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Typeable for T where
    T: Any