Enum google_api_proto::maps::fleetengine::delivery::v1::task_tracking_view_config::visibility_option::VisibilityOption
source · pub enum VisibilityOption {
RemainingStopCountThreshold(i32),
DurationUntilEstimatedArrivalTimeThreshold(Duration),
RemainingDrivingDistanceMetersThreshold(i32),
Always(bool),
Never(bool),
}
Expand description
The specific visibility option chosen.
Variants§
RemainingStopCountThreshold(i32)
This data element is visible to the end users if the remaining stop count <= remaining_stop_count_threshold.
DurationUntilEstimatedArrivalTimeThreshold(Duration)
This data element is visible to the end users if the ETA to the stop <= duration_until_estimated_arrival_time_threshold.
RemainingDrivingDistanceMetersThreshold(i32)
This data element is visible to the end users if the remaining driving distance in meters <= remaining_driving_distance_meters_threshold.
Always(bool)
If set to true, this data element is always visible to the end users with no thresholds. This field cannot be set to false.
Never(bool)
If set to true, this data element is always hidden from the end users with no thresholds. This field cannot be set to false.
Implementations§
source§impl VisibilityOption
impl VisibilityOption
sourcepub fn merge<B>(
field: &mut Option<VisibilityOption>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<VisibilityOption>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for VisibilityOption
impl Clone for VisibilityOption
source§fn clone(&self) -> VisibilityOption
fn clone(&self) -> VisibilityOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VisibilityOption
impl Debug for VisibilityOption
source§impl PartialEq for VisibilityOption
impl PartialEq for VisibilityOption
source§fn eq(&self, other: &VisibilityOption) -> bool
fn eq(&self, other: &VisibilityOption) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VisibilityOption
Auto Trait Implementations§
impl Freeze for VisibilityOption
impl RefUnwindSafe for VisibilityOption
impl Send for VisibilityOption
impl Sync for VisibilityOption
impl Unpin for VisibilityOption
impl UnwindSafe for VisibilityOption
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<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