Enum google_geocoding::ComponentFilterRule[][src]

pub enum ComponentFilterRule {
    PostalCode(String),
    Country(String),
    Route(String),
    Locality(String),
    AdministrativeArea(String),
}

A rule for a component filter

Variants

Matches postal_code and postal_code_prefix.

Matches a country name or a two letter ISO 3166-1 country code. Note: The API follows the ISO standard for defining countries, and the filtering works best when using the corresponding ISO code of the country.

Matches the long or short name of a route.

Matches matches against locality and sublocality types.

Matches all the administrative_area levels.

Trait Implementations

impl Debug for ComponentFilterRule
[src]

Formats the value using the given formatter. Read more

impl Eq for ComponentFilterRule
[src]

impl Hash for ComponentFilterRule
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ComponentFilterRule
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Serialize for ComponentFilterRule
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations