Struct google_partners2::Location [] [src]

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 of the address. Should be in BCP 47 format.

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

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

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

The latitude and longitude of the location, in degrees.

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

CLDR (Common Locale Data Repository) region code .

Top-level administrative subdivision of this country.

The single string version of the address.

Values are frequently alphanumeric.

Trait Implementations

impl Default for Location
[src]

Returns the "default value" for a type. Read more

impl Clone for Location
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Location
[src]

Formats the value using the given formatter.

impl Part for Location
[src]