Enum google_maps::LocationType
source · #[repr(u8)]pub enum LocationType {
Approximate = 0,
GeometricCenter = 1,
RangeInterpolated = 2,
RoofTop = 3,
}
Expand description
Stores additional data about the specified location.
Variants§
Approximate = 0
Indicates that the returned result is approximate.
GeometricCenter = 1
Indicates that the returned result is the geometric center of a result such as a polyline (for example, a street) or polygon (region).
RangeInterpolated = 2
Indicates that the returned result reflects an approximation (usually on a road) interpolated between two precise points (such as intersections). Interpolated results are generally returned when rooftop geocodes are unavailable for a street address.
RoofTop = 3
Indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision.
Implementations§
Trait Implementations§
source§impl Clone for LocationType
impl Clone for LocationType
source§fn clone(&self) -> LocationType
fn clone(&self) -> LocationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationType
impl Debug for LocationType
source§impl Default for LocationType
impl Default for LocationType
source§fn default() -> LocationType
fn default() -> LocationType
source§impl<'de> Deserialize<'de> for LocationType
impl<'de> Deserialize<'de> for LocationType
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 LocationType
impl Display for LocationType
source§impl From<&LocationType> for &str
impl From<&LocationType> for &str
source§fn from(location_type: &LocationType) -> Self
fn from(location_type: &LocationType) -> Self
Converts a LocationType
enum to a String
that contains a location
type code.
source§impl From<&LocationType> for String
impl From<&LocationType> for String
source§fn from(location_type: &LocationType) -> Self
fn from(location_type: &LocationType) -> Self
Converts a LocationType
enum to a String
that contains a location
type code.
source§impl FromStr for LocationType
impl FromStr for LocationType
source§impl Hash for LocationType
impl Hash for LocationType
source§impl Ord for LocationType
impl Ord for LocationType
source§fn cmp(&self, other: &LocationType) -> Ordering
fn cmp(&self, other: &LocationType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq for LocationType
impl PartialEq for LocationType
source§fn eq(&self, other: &LocationType) -> bool
fn eq(&self, other: &LocationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LocationType
impl PartialOrd for LocationType
source§fn partial_cmp(&self, other: &LocationType) -> Option<Ordering>
fn partial_cmp(&self, other: &LocationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for LocationType
impl Serialize for LocationType
source§impl TryFrom<&str> for LocationType
impl TryFrom<&str> for LocationType
impl Copy for LocationType
impl Eq for LocationType
impl StructuralEq for LocationType
impl StructuralPartialEq for LocationType
Auto Trait Implementations§
impl RefUnwindSafe for LocationType
impl Send for LocationType
impl Sync for LocationType
impl Unpin for LocationType
impl UnwindSafe for LocationType
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.