#[repr(i32)]pub enum DeliveryVehicleLocationSensor {
UnknownSensor = 0,
Gps = 1,
Network = 2,
Passive = 3,
RoadSnappedLocationProvider = 4,
CustomerSuppliedLocation = 5,
FleetEngineLocation = 6,
FusedLocationProvider = 100,
CoreLocation = 200,
}
Expand description
The sensor or methodology used to determine the location.
Variants§
UnknownSensor = 0
The sensor is unspecified or unknown.
Gps = 1
GPS or Assisted GPS.
Network = 2
Assisted GPS, cell tower ID, or WiFi access point.
Passive = 3
Cell tower ID or WiFi access point.
RoadSnappedLocationProvider = 4
A location determined by the mobile device to be the most likely road position.
CustomerSuppliedLocation = 5
A customer-supplied location from an independent source. Typically, this
value is used for a location provided from sources other than the mobile
device running Driver SDK. If the original source is described by one of
the other enum values, use that value. Locations marked
CUSTOMER_SUPPLIED_LOCATION are typically provided via a DeliveryVehicle’s
last_location.supplemental_location_sensor
.
FleetEngineLocation = 6
A location calculated by Fleet Engine based on the signals available to it. Output only. This value will be rejected if it is received in a request.
FusedLocationProvider = 100
Android’s Fused Location Provider.
CoreLocation = 200
The location provider on Apple operating systems.
Implementations§
source§impl DeliveryVehicleLocationSensor
impl DeliveryVehicleLocationSensor
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of DeliveryVehicleLocationSensor
.
sourcepub fn from_i32(value: i32) -> Option<DeliveryVehicleLocationSensor>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<DeliveryVehicleLocationSensor>
Converts an i32
to a DeliveryVehicleLocationSensor
, or None
if value
is not a valid variant.
source§impl DeliveryVehicleLocationSensor
impl DeliveryVehicleLocationSensor
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 DeliveryVehicleLocationSensor
impl Clone for DeliveryVehicleLocationSensor
source§fn clone(&self) -> DeliveryVehicleLocationSensor
fn clone(&self) -> DeliveryVehicleLocationSensor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeliveryVehicleLocationSensor
impl Default for DeliveryVehicleLocationSensor
source§fn default() -> DeliveryVehicleLocationSensor
fn default() -> DeliveryVehicleLocationSensor
source§impl From<DeliveryVehicleLocationSensor> for i32
impl From<DeliveryVehicleLocationSensor> for i32
source§fn from(value: DeliveryVehicleLocationSensor) -> i32
fn from(value: DeliveryVehicleLocationSensor) -> i32
source§impl Hash for DeliveryVehicleLocationSensor
impl Hash for DeliveryVehicleLocationSensor
source§impl Ord for DeliveryVehicleLocationSensor
impl Ord for DeliveryVehicleLocationSensor
source§fn cmp(&self, other: &DeliveryVehicleLocationSensor) -> Ordering
fn cmp(&self, other: &DeliveryVehicleLocationSensor) -> 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 DeliveryVehicleLocationSensor
impl PartialEq for DeliveryVehicleLocationSensor
source§fn eq(&self, other: &DeliveryVehicleLocationSensor) -> bool
fn eq(&self, other: &DeliveryVehicleLocationSensor) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DeliveryVehicleLocationSensor
impl PartialOrd for DeliveryVehicleLocationSensor
source§fn partial_cmp(&self, other: &DeliveryVehicleLocationSensor) -> Option<Ordering>
fn partial_cmp(&self, other: &DeliveryVehicleLocationSensor) -> 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 DeliveryVehicleLocationSensor
impl TryFrom<i32> for DeliveryVehicleLocationSensor
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(
value: i32,
) -> Result<DeliveryVehicleLocationSensor, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<DeliveryVehicleLocationSensor, UnknownEnumValue>
impl Copy for DeliveryVehicleLocationSensor
impl Eq for DeliveryVehicleLocationSensor
impl StructuralPartialEq for DeliveryVehicleLocationSensor
Auto Trait Implementations§
impl Freeze for DeliveryVehicleLocationSensor
impl RefUnwindSafe for DeliveryVehicleLocationSensor
impl Send for DeliveryVehicleLocationSensor
impl Sync for DeliveryVehicleLocationSensor
impl Unpin for DeliveryVehicleLocationSensor
impl UnwindSafe for DeliveryVehicleLocationSensor
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