Enum google_api_proto::google::maps::routing::v2::transit_vehicle::TransitVehicleType
source · #[repr(i32)]pub enum TransitVehicleType {
Show 19 variants
Unspecified = 0,
Bus = 1,
CableCar = 2,
CommuterTrain = 3,
Ferry = 4,
Funicular = 5,
GondolaLift = 6,
HeavyRail = 7,
HighSpeedTrain = 8,
IntercityBus = 9,
LongDistanceTrain = 10,
MetroRail = 11,
Monorail = 12,
Other = 13,
Rail = 14,
ShareTaxi = 15,
Subway = 16,
Tram = 17,
Trolleybus = 18,
}
Expand description
The type of vehicles for transit routes.
Variants§
Unspecified = 0
Unused.
Bus = 1
Bus.
CableCar = 2
A vehicle that operates on a cable, usually on the ground. Aerial cable
cars may be of the type GONDOLA_LIFT
.
CommuterTrain = 3
Commuter rail.
Ferry = 4
Ferry.
Funicular = 5
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 = 6
An aerial cable car.
HeavyRail = 7
Heavy rail.
HighSpeedTrain = 8
High speed train.
IntercityBus = 9
Intercity bus.
LongDistanceTrain = 10
Long distance train.
MetroRail = 11
Light rail transit.
Monorail = 12
Monorail.
Other = 13
All other vehicles.
Rail = 14
Rail.
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
Subway = 16
Underground light rail.
Tram = 17
Above ground light rail.
Trolleybus = 18
Trolleybus.
Implementations§
source§impl TransitVehicleType
impl TransitVehicleType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for TransitVehicleType
impl Clone for TransitVehicleType
source§fn clone(&self) -> TransitVehicleType
fn clone(&self) -> TransitVehicleType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransitVehicleType
impl Debug for TransitVehicleType
source§impl Default for TransitVehicleType
impl Default for TransitVehicleType
source§fn default() -> TransitVehicleType
fn default() -> TransitVehicleType
source§impl From<TransitVehicleType> for i32
impl From<TransitVehicleType> for i32
source§fn from(value: TransitVehicleType) -> i32
fn from(value: TransitVehicleType) -> i32
source§impl Hash for TransitVehicleType
impl Hash for TransitVehicleType
source§impl Ord for TransitVehicleType
impl Ord for TransitVehicleType
source§fn cmp(&self, other: &TransitVehicleType) -> Ordering
fn cmp(&self, other: &TransitVehicleType) -> 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 TransitVehicleType
impl PartialEq for TransitVehicleType
source§fn eq(&self, other: &TransitVehicleType) -> bool
fn eq(&self, other: &TransitVehicleType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransitVehicleType
impl PartialOrd for TransitVehicleType
source§fn partial_cmp(&self, other: &TransitVehicleType) -> Option<Ordering>
fn partial_cmp(&self, other: &TransitVehicleType) -> 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 moresource§impl TryFrom<i32> for TransitVehicleType
impl TryFrom<i32> for TransitVehicleType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<TransitVehicleType, DecodeError>
fn try_from(value: i32) -> Result<TransitVehicleType, DecodeError>
impl Copy for TransitVehicleType
impl Eq for TransitVehicleType
impl StructuralPartialEq for TransitVehicleType
Auto Trait Implementations§
impl Freeze for TransitVehicleType
impl RefUnwindSafe for TransitVehicleType
impl Send for TransitVehicleType
impl Sync for TransitVehicleType
impl Unpin for TransitVehicleType
impl UnwindSafe for TransitVehicleType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request