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.
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type VehicleType::Gondola.
Commuter rail.
Ferry.
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.
An aerial cable car.
Heavy rail.
High speed train.
Intercity bus.
Long distance train.
Light rail transit.
Monorail.
All other vehicles will return this type.
Rail.
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
Underground light rail.
Above ground light rail.
Trolleybus.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Converts a VehicleType
enum to a String
that contains a vehicle
type
code.
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
Gets a VehicleType
enum from a String
that contains a valid vehicle
type
code.
Auto Trait Implementations
impl RefUnwindSafe for VehicleType
impl Send for VehicleType
impl Sync for VehicleType
impl Unpin for VehicleType
impl UnwindSafe for VehicleType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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