[][src]Enum google_maps::directions::vehicle_type::VehicleType

pub enum VehicleType {
    Bus,
    CableCar,
    CommuterTrain,
    Ferry,
    Funicular,
    GondolaLift,
    HeavyRail,
    HighSpeedTrain,
    IntercityBus,
    LongDistanceTrain,
    MetroRail,
    Monorail,
    Other,
    Rail,
    ShareTaxi,
    Subway,
    Tram,
    Trolleybus,
}

Indicates the vehicle type

Variants

Bus

Bus.

CableCar

A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type VehicleType::Gondola.

CommuterTrain

Commuter rail.

Ferry

Ferry.

Funicular

A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other.

GondolaLift

An aerial cable car.

HeavyRail

Heavy rail.

HighSpeedTrain

High speed train.

IntercityBus

Intercity bus.

LongDistanceTrain

Long distance train.

MetroRail

Light rail transit.

Monorail

Monorail.

Other

All other vehicles will return this type.

Rail

Rail.

ShareTaxi

Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.

Subway

Underground light rail.

Tram

Above ground light rail.

Trolleybus

Trolleybus.

Trait Implementations

impl Clone for VehicleType[src]

impl Debug for VehicleType[src]

impl Default for VehicleType[src]

fn default() -> Self[src]

Returns a reasonable default variant for the VehicleType enum type.

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

impl Display for VehicleType[src]

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

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

impl Eq for VehicleType[src]

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

fn from(vehicle_type: &VehicleType) -> String[src]

Converts a VehicleType enum to a String that contains a vehicle type code.

impl Hash for VehicleType[src]

impl Ord for VehicleType[src]

impl PartialEq<VehicleType> for VehicleType[src]

impl PartialOrd<VehicleType> for VehicleType[src]

impl Serialize for VehicleType[src]

impl StructuralEq for VehicleType[src]

impl StructuralPartialEq for VehicleType[src]

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

type Error = Error

The type returned in the event of a conversion error.

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

Gets a VehicleType enum from a String that contains a valid vehicle 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>,