Enum google_maps::directions::vehicle_type::VehicleType
source · #[repr(u8)]pub enum VehicleType {
Show 18 variants
Bus = 0,
CableCar = 1,
CommuterTrain = 2,
Ferry = 3,
Funicular = 4,
GondolaLift = 5,
HeavyRail = 6,
HighSpeedTrain = 7,
IntercityBus = 8,
LongDistanceTrain = 9,
MetroRail = 10,
Monorail = 11,
Other = 12,
Rail = 13,
ShareTaxi = 14,
Subway = 15,
Tram = 16,
Trolleybus = 17,
}
Expand description
Indicates the vehicle type
Variants§
Bus = 0
Bus.
CableCar = 1
A vehicle that operates on a cable, usually on the ground. Aerial cable
cars may be of the type VehicleType::Gondola
.
CommuterTrain = 2
Commuter rail.
Ferry = 3
Ferry.
Funicular = 4
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 = 5
An aerial cable car.
HeavyRail = 6
Heavy rail.
HighSpeedTrain = 7
High speed train.
IntercityBus = 8
Intercity bus.
LongDistanceTrain = 9
Long distance train.
MetroRail = 10
Light rail transit.
Monorail = 11
Monorail.
Other = 12
All other vehicles will return this type.
Rail = 13
Rail.
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
Subway = 15
Underground light rail.
Tram = 16
Above ground light rail.
Trolleybus = 17
Trolleybus.
Implementations§
Trait Implementations§
source§impl Clone for VehicleType
impl Clone for VehicleType
source§fn clone(&self) -> VehicleType
fn clone(&self) -> VehicleType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VehicleType
impl Debug for VehicleType
source§impl Default for VehicleType
impl Default for VehicleType
source§fn default() -> VehicleType
fn default() -> VehicleType
source§impl<'de> Deserialize<'de> for VehicleType
impl<'de> Deserialize<'de> for VehicleType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize
for serde
. This will take
advantage of the phf
-powered TryFrom
implementation for this type.
source§impl Display for VehicleType
impl Display for VehicleType
source§impl From<&VehicleType> for &str
impl From<&VehicleType> for &str
source§fn from(vehicle_type: &VehicleType) -> Self
fn from(vehicle_type: &VehicleType) -> Self
Converts a VehicleType
enum to a String
that contains a vehicle
type
code.
source§impl From<&VehicleType> for String
impl From<&VehicleType> for String
source§fn from(vehicle_type: &VehicleType) -> Self
fn from(vehicle_type: &VehicleType) -> Self
Converts a VehicleType
enum to a String
that contains a vehicle
type
code.
source§impl FromStr for VehicleType
impl FromStr for VehicleType
source§impl Hash for VehicleType
impl Hash for VehicleType
source§impl Ord for VehicleType
impl Ord for VehicleType
source§fn cmp(&self, other: &VehicleType) -> Ordering
fn cmp(&self, other: &VehicleType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for VehicleType
impl PartialEq for VehicleType
source§fn eq(&self, other: &VehicleType) -> bool
fn eq(&self, other: &VehicleType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VehicleType
impl PartialOrd for VehicleType
source§fn partial_cmp(&self, other: &VehicleType) -> Option<Ordering>
fn partial_cmp(&self, other: &VehicleType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more