Enum google_api_proto::maps::fleetengine::v1::TripStatus
source · #[repr(i32)]pub enum TripStatus {
UnknownTripStatus = 0,
New = 1,
EnrouteToPickup = 2,
ArrivedAtPickup = 3,
ArrivedAtIntermediateDestination = 7,
EnrouteToIntermediateDestination = 8,
EnrouteToDropoff = 4,
Complete = 5,
Canceled = 6,
}
Expand description
The status of a trip indicating its progression.
Variants§
UnknownTripStatus = 0
Default, used for unspecified or unrecognized trip status.
New = 1
Newly created trip.
EnrouteToPickup = 2
The driver is on their way to the pickup point.
ArrivedAtPickup = 3
The driver has arrived at the pickup point.
ArrivedAtIntermediateDestination = 7
The driver has arrived at an intermediate destination and is waiting for the rider.
EnrouteToIntermediateDestination = 8
The driver is on their way to an intermediate destination (not the dropoff point).
EnrouteToDropoff = 4
The driver has picked up the rider and is on their way to the next destination.
Complete = 5
The rider has been dropped off and the trip is complete.
Canceled = 6
The trip was canceled prior to pickup by the driver, rider, or rideshare provider.
Implementations§
source§impl TripStatus
impl TripStatus
source§impl TripStatus
impl TripStatus
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 TripStatus
impl Clone for TripStatus
source§fn clone(&self) -> TripStatus
fn clone(&self) -> TripStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TripStatus
impl Debug for TripStatus
source§impl Default for TripStatus
impl Default for TripStatus
source§fn default() -> TripStatus
fn default() -> TripStatus
source§impl From<TripStatus> for i32
impl From<TripStatus> for i32
source§fn from(value: TripStatus) -> i32
fn from(value: TripStatus) -> i32
source§impl Hash for TripStatus
impl Hash for TripStatus
source§impl Ord for TripStatus
impl Ord for TripStatus
source§fn cmp(&self, other: &TripStatus) -> Ordering
fn cmp(&self, other: &TripStatus) -> 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 TripStatus
impl PartialEq for TripStatus
source§fn eq(&self, other: &TripStatus) -> bool
fn eq(&self, other: &TripStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TripStatus
impl PartialOrd for TripStatus
source§fn partial_cmp(&self, other: &TripStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &TripStatus) -> 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 TripStatus
impl TryFrom<i32> for TripStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<TripStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<TripStatus, UnknownEnumValue>
impl Copy for TripStatus
impl Eq for TripStatus
impl StructuralPartialEq for TripStatus
Auto Trait Implementations§
impl Freeze for TripStatus
impl RefUnwindSafe for TripStatus
impl Send for TripStatus
impl Sync for TripStatus
impl Unpin for TripStatus
impl UnwindSafe for TripStatus
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