Enum google_api_proto::maps::fleetengine::v1::vehicle_match::VehicleMatchType
source · #[repr(i32)]pub enum VehicleMatchType {
Unknown = 0,
Exclusive = 1,
BackToBack = 2,
Carpool = 3,
CarpoolBackToBack = 4,
}
Expand description
Type of vehicle match.
Variants§
Unknown = 0
Unknown vehicle match type
Exclusive = 1
The vehicle currently has no trip assigned to it and can proceed to the pickup point.
BackToBack = 2
The vehicle is currently assigned to a trip, but can proceed to the pickup point after completing the in-progress trip. ETA and distance calculations take the existing trip into account.
Carpool = 3
The vehicle has sufficient capacity for a shared ride.
CarpoolBackToBack = 4
The vehicle will finish its current, active trip before proceeding to the pickup point. ETA and distance calculations take the existing trip into account.
Implementations§
source§impl VehicleMatchType
impl VehicleMatchType
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 VehicleMatchType
impl Clone for VehicleMatchType
source§fn clone(&self) -> VehicleMatchType
fn clone(&self) -> VehicleMatchType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VehicleMatchType
impl Debug for VehicleMatchType
source§impl Default for VehicleMatchType
impl Default for VehicleMatchType
source§fn default() -> VehicleMatchType
fn default() -> VehicleMatchType
source§impl From<VehicleMatchType> for i32
impl From<VehicleMatchType> for i32
source§fn from(value: VehicleMatchType) -> i32
fn from(value: VehicleMatchType) -> i32
source§impl Hash for VehicleMatchType
impl Hash for VehicleMatchType
source§impl Ord for VehicleMatchType
impl Ord for VehicleMatchType
source§fn cmp(&self, other: &VehicleMatchType) -> Ordering
fn cmp(&self, other: &VehicleMatchType) -> 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 VehicleMatchType
impl PartialEq for VehicleMatchType
source§fn eq(&self, other: &VehicleMatchType) -> bool
fn eq(&self, other: &VehicleMatchType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VehicleMatchType
impl PartialOrd for VehicleMatchType
source§fn partial_cmp(&self, other: &VehicleMatchType) -> Option<Ordering>
fn partial_cmp(&self, other: &VehicleMatchType) -> 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 VehicleMatchType
impl TryFrom<i32> for VehicleMatchType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<VehicleMatchType, DecodeError>
fn try_from(value: i32) -> Result<VehicleMatchType, DecodeError>
impl Copy for VehicleMatchType
impl Eq for VehicleMatchType
impl StructuralPartialEq for VehicleMatchType
Auto Trait Implementations§
impl Freeze for VehicleMatchType
impl RefUnwindSafe for VehicleMatchType
impl Send for VehicleMatchType
impl Sync for VehicleMatchType
impl Unpin for VehicleMatchType
impl UnwindSafe for VehicleMatchType
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