[][src]Enum google_maps::TransitRoutePreference

pub enum TransitRoutePreference {
    FewerTransfers,
    LessWalking,
}

Specifies preferences for transit routes.

Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID.

Variants

FewerTransfers

Indicates that the calculated route should prefer a limited number of transfers.

LessWalking

Indicates that the calculated route should prefer limited amounts of walking.

Trait Implementations

impl Clone for TransitRoutePreference[src]

impl Debug for TransitRoutePreference[src]

impl Default for TransitRoutePreference[src]

fn default() -> Self[src]

Returns a reasonable default variant for the TransitRoutePreference enum type.

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

impl Display for TransitRoutePreference[src]

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

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

impl Eq for TransitRoutePreference[src]

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

fn from(transit_route_preference: &TransitRoutePreference) -> String[src]

Converts a TransitRoutePreference enum to a String that contains a transit route preference code.

impl Hash for TransitRoutePreference[src]

impl Ord for TransitRoutePreference[src]

impl PartialEq<TransitRoutePreference> for TransitRoutePreference[src]

impl PartialOrd<TransitRoutePreference> for TransitRoutePreference[src]

impl Serialize for TransitRoutePreference[src]

impl StructuralEq for TransitRoutePreference[src]

impl StructuralPartialEq for TransitRoutePreference[src]

impl TryFrom<String> for TransitRoutePreference[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(
    transit_route_preference: String
) -> Result<TransitRoutePreference, Error>
[src]

Gets a TransitRoutePreference enum from a String that contains a valid transit route preference 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>,