#[repr(i32)]pub enum VehicleMatchOrder {
UnknownVehicleMatchOrder = 0,
PickupPointEta = 1,
PickupPointDistance = 2,
DropoffPointEta = 3,
PickupPointStraightDistance = 4,
Cost = 5,
}
Expand description
Specifies the order of the vehicle matches in the response.
Variants§
UnknownVehicleMatchOrder = 0
Default, used for unspecified or unrecognized vehicle matches order.
PickupPointEta = 1
Ascending order by vehicle driving time to the pickup point.
PickupPointDistance = 2
Ascending order by vehicle driving distance to the pickup point.
DropoffPointEta = 3
Ascending order by vehicle driving time to the dropoff point. This order can only be used if the dropoff point is specified in the request.
PickupPointStraightDistance = 4
Ascending order by straight-line distance from the vehicle’s last reported location to the pickup point.
Cost = 5
Ascending order by the configured match cost. Match cost is defined as a weighted calculation between straight-line distance and ETA. Weights are set with default values and can be modified per customer. Please contact Google support if these weights need to be modified for your project.
Implementations§
source§impl VehicleMatchOrder
impl VehicleMatchOrder
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 VehicleMatchOrder
impl Clone for VehicleMatchOrder
source§fn clone(&self) -> VehicleMatchOrder
fn clone(&self) -> VehicleMatchOrder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VehicleMatchOrder
impl Debug for VehicleMatchOrder
source§impl Default for VehicleMatchOrder
impl Default for VehicleMatchOrder
source§fn default() -> VehicleMatchOrder
fn default() -> VehicleMatchOrder
source§impl From<VehicleMatchOrder> for i32
impl From<VehicleMatchOrder> for i32
source§fn from(value: VehicleMatchOrder) -> i32
fn from(value: VehicleMatchOrder) -> i32
source§impl Hash for VehicleMatchOrder
impl Hash for VehicleMatchOrder
source§impl Ord for VehicleMatchOrder
impl Ord for VehicleMatchOrder
source§fn cmp(&self, other: &VehicleMatchOrder) -> Ordering
fn cmp(&self, other: &VehicleMatchOrder) -> 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 VehicleMatchOrder
impl PartialEq for VehicleMatchOrder
source§fn eq(&self, other: &VehicleMatchOrder) -> bool
fn eq(&self, other: &VehicleMatchOrder) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VehicleMatchOrder
impl PartialOrd for VehicleMatchOrder
source§fn partial_cmp(&self, other: &VehicleMatchOrder) -> Option<Ordering>
fn partial_cmp(&self, other: &VehicleMatchOrder) -> 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 VehicleMatchOrder
impl TryFrom<i32> for VehicleMatchOrder
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<VehicleMatchOrder, UnknownEnumValue>
fn try_from(value: i32) -> Result<VehicleMatchOrder, UnknownEnumValue>
impl Copy for VehicleMatchOrder
impl Eq for VehicleMatchOrder
impl StructuralPartialEq for VehicleMatchOrder
Auto Trait Implementations§
impl Freeze for VehicleMatchOrder
impl RefUnwindSafe for VehicleMatchOrder
impl Send for VehicleMatchOrder
impl Sync for VehicleMatchOrder
impl Unpin for VehicleMatchOrder
impl UnwindSafe for VehicleMatchOrder
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