pub enum GeocoderStatus {
Ok,
ZeroResults,
UnknownError,
}Expand description
Indicates the status code resulting from the geocoding operation.
Variants§
Ok
Indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.
ZeroResults
Indicates that the geocode was successful but returned no results. This
may occur if the geocoder was passed a non-existent address.
UnknownError
Indicates that the request could not be processed due to a server error. The request may succeed if you try again.
Trait Implementations§
source§impl Clone for GeocoderStatus
impl Clone for GeocoderStatus
source§fn clone(&self) -> GeocoderStatus
fn clone(&self) -> GeocoderStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GeocoderStatus
impl Debug for GeocoderStatus
source§impl Default for GeocoderStatus
impl Default for GeocoderStatus
source§impl<'de> Deserialize<'de> for GeocoderStatus
impl<'de> Deserialize<'de> for GeocoderStatus
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize for serde. This will take
advantage of the phf-powered TryFrom implementation for this type.
source§impl Display for GeocoderStatus
impl Display for GeocoderStatus
source§impl From<&GeocoderStatus> for String
impl From<&GeocoderStatus> for String
source§fn from(geocoder_status: &GeocoderStatus) -> String
fn from(geocoder_status: &GeocoderStatus) -> String
Converts a GeocoderStatus enum to a String that contains a geocoder
status
code.
source§impl FromStr for GeocoderStatus
impl FromStr for GeocoderStatus
source§impl Hash for GeocoderStatus
impl Hash for GeocoderStatus
source§impl Ord for GeocoderStatus
impl Ord for GeocoderStatus
source§fn cmp(&self, other: &GeocoderStatus) -> Ordering
fn cmp(&self, other: &GeocoderStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GeocoderStatus
impl PartialEq for GeocoderStatus
source§fn eq(&self, other: &GeocoderStatus) -> bool
fn eq(&self, other: &GeocoderStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for GeocoderStatus
impl PartialOrd for GeocoderStatus
source§fn partial_cmp(&self, other: &GeocoderStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &GeocoderStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for GeocoderStatus
impl Serialize for GeocoderStatus
source§impl TryFrom<&str> for GeocoderStatus
impl TryFrom<&str> for GeocoderStatus
impl Eq for GeocoderStatus
impl StructuralEq for GeocoderStatus
impl StructuralPartialEq for GeocoderStatus
Auto Trait Implementations§
impl RefUnwindSafe for GeocoderStatus
impl Send for GeocoderStatus
impl Sync for GeocoderStatus
impl Unpin for GeocoderStatus
impl UnwindSafe for GeocoderStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.