[][src]Enum google_maps::geocoding::location_type::LocationType

pub enum LocationType {
    Approximate,
    GeometricCenter,
    RangeInterpolated,
    RoofTop,
}

Stores additional data about the specified location.

Variants

Approximate

Indicates that the returned result is approximate.

GeometricCenter

Indicates that the returned result is the geometric center of a result such as a polyline (for example, a street) or polygon (region).

RangeInterpolated

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

Indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision.

Trait Implementations

impl Clone for LocationType[src]

impl Debug for LocationType[src]

impl Default for LocationType[src]

fn default() -> Self[src]

Returns a reasonable default variant for the LocationType enum type.

impl<'de> Deserialize<'de> for LocationType[src]

impl Display for LocationType[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats a LocationType enum into a string that is presentable to the end user.

impl Eq for LocationType[src]

impl<'_> From<&'_ LocationType> for String[src]

fn from(location_type: &LocationType) -> String[src]

Converts a LocationType enum to a String that contains a location type code.

impl Hash for LocationType[src]

impl Ord for LocationType[src]

impl PartialEq<LocationType> for LocationType[src]

impl PartialOrd<LocationType> for LocationType[src]

impl Serialize for LocationType[src]

impl StructuralEq for LocationType[src]

impl StructuralPartialEq for LocationType[src]

impl<'_> TryFrom<&'_ str> for LocationType[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(location_type: &str) -> Result<LocationType, Error>[src]

Gets a LocationType enum from a String that contains a supported location type code.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,