[][src]Struct google_partners2::Location

pub struct Location {
    pub language_code: Option<String>,
    pub address_line: Option<Vec<String>>,
    pub locality: Option<String>,
    pub sorting_code: Option<String>,
    pub lat_lng: Option<LatLng>,
    pub dependent_locality: Option<String>,
    pub region_code: Option<String>,
    pub administrative_area: Option<String>,
    pub address: Option<String>,
    pub postal_code: Option<String>,
}

A location with address and geographic coordinates. May optionally contain a detailed (multi-field) version of the address.

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

Fields

language_code: Option<String>

Language code of the address. Should be in BCP 47 format.

address_line: Option<Vec<String>>

The following address lines represent the most specific part of any address.

locality: Option<String>

Generally refers to the city/town portion of an address.

sorting_code: Option<String>

Use of this code is very country-specific, but will refer to a secondary classification code for sorting mail.

lat_lng: Option<LatLng>

The latitude and longitude of the location, in degrees.

dependent_locality: Option<String>

Dependent locality or sublocality. Used for UK dependent localities, or neighborhoods or boroughs in other locations.

region_code: Option<String>

CLDR (Common Locale Data Repository) region code .

administrative_area: Option<String>

Top-level administrative subdivision of this country.

address: Option<String>

The single string version of the address.

postal_code: Option<String>

Values are frequently alphanumeric.

Trait Implementations

impl Part for Location[src]

impl Default for Location[src]

impl Clone for Location[src]

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

Performs copy-assignment from source. Read more

impl Debug for Location[src]

impl Serialize for Location[src]

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

Auto Trait Implementations

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]