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
PostalCode(String)
Matches postal_code and postal_code_prefix.
Country(String)
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.
Route(String)
Matches the long or short name of a route.
Locality(String)
Matches matches against locality and sublocality types.
AdministrativeArea(String)
Matches all the administrative_area levels.
Trait Implementations
impl Debug for ComponentFilterRule
[src]
impl Debug for ComponentFilterRule
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ComponentFilterRule
[src]
impl Eq for ComponentFilterRule
impl Hash for ComponentFilterRule
[src]
impl Hash for ComponentFilterRule
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ComponentFilterRule
[src]
impl PartialEq for ComponentFilterRule
fn eq(&self, other: &ComponentFilterRule) -> bool
[src]
fn eq(&self, other: &ComponentFilterRule) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ComponentFilterRule) -> bool
[src]
fn ne(&self, other: &ComponentFilterRule) -> bool
This method tests for !=
.
impl Serialize for ComponentFilterRule
[src]
impl Serialize for ComponentFilterRule
Auto Trait Implementations
impl Send for ComponentFilterRule
impl Send for ComponentFilterRule
impl Sync for ComponentFilterRule
impl Sync for ComponentFilterRule