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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns a reasonable default variant for the VehicleType enum type.

Deserialize this value from the given Serde deserializer. Read more

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

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Gets a VehicleType enum from a String that contains a valid vehicle type code.

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more