[][src]Enum google_maps::distance_matrix::response::element_status::ElementStatus

pub enum ElementStatus {
    MaxRouteLengthExceeded,
    NotFound,
    Ok,
    ZeroResults,
}

The status fields within the response object contain the status of the request, and may contain useful debugging information. The Distance Matrix API returns a top-level status field, with information about the request in general, as well as a status field for each element field, with information about that particular origin-destination pairing.

Variants

MaxRouteLengthExceeded

Indicates the requested route is too long and cannot be processed.

NotFound

Indicates that the origin and/or destination of this pairing could not be geocoded.

Ok

Indicates the response contains a valid result.

ZeroResults

Indicates no route could be found between the origin and destination.

Trait Implementations

impl Clone for ElementStatus[src]

impl Debug for ElementStatus[src]

impl Default for ElementStatus[src]

fn default() -> Self[src]

Returns a reasonable default variant for the ElementStatus enum type.

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

impl Display for ElementStatus[src]

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

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

impl Eq for ElementStatus[src]

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

fn from(element_status: &ElementStatus) -> String[src]

Converts a ElementStatus enum to a String that contains a element status code.

impl Hash for ElementStatus[src]

impl Ord for ElementStatus[src]

impl PartialEq<ElementStatus> for ElementStatus[src]

impl PartialOrd<ElementStatus> for ElementStatus[src]

impl Serialize for ElementStatus[src]

impl StructuralEq for ElementStatus[src]

impl StructuralPartialEq for ElementStatus[src]

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

type Error = Error

The type returned in the event of a conversion error.

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

Gets a ElementStatus enum from a String that contains a valid element status 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>,