Enum google_api_proto::maps::fleetengine::v1::TripView
source · #[repr(i32)]pub enum TripView {
Unspecified = 0,
Sdk = 1,
JourneySharingV1s = 2,
}
Expand description
Selector for different sets of Trip fields in a GetTrip
response. See
AIP-157 for context. Additional views are
likely to be added.
Variants§
Unspecified = 0
The default value. For backwards-compatibility, the API will default to an
SDK view. To ensure stability and support, customers are
advised to select a TripView
other than SDK
.
Sdk = 1
Includes fields that may not be interpretable or supportable using publicly available libraries.
JourneySharingV1s = 2
Trip fields are populated for the Journey Sharing use case. This view is intended for server-to-server communications.
Implementations§
source§impl TripView
impl TripView
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 Ord for TripView
impl Ord for TripView
source§impl PartialEq for TripView
impl PartialEq for TripView
source§impl PartialOrd for TripView
impl PartialOrd for TripView
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 TripView
impl TryFrom<i32> for TripView
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for TripView
impl Eq for TripView
impl StructuralPartialEq for TripView
Auto Trait Implementations§
impl Freeze for TripView
impl RefUnwindSafe for TripView
impl Send for TripView
impl Sync for TripView
impl Unpin for TripView
impl UnwindSafe for TripView
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