Struct google_api_proto::maps::fleetengine::delivery::v1::task::JourneySharingInfo
source · pub struct JourneySharingInfo {
pub remaining_vehicle_journey_segments: Vec<VehicleJourneySegment>,
pub last_location: Option<DeliveryVehicleLocation>,
pub last_location_snappable: bool,
}
Expand description
Journey sharing specific fields.
Fields§
§remaining_vehicle_journey_segments: Vec<VehicleJourneySegment>
Tracking information for the stops that the assigned vehicle will make before it completes this Task. Note that this list can contain stops from other tasks.
The first segment,
Task.journey_sharing_info.remaining_vehicle_journey_segments\[0\]
(gRPC)
or Task.journeySharingInfo.remainingVehicleJourneySegments\[0\]
(REST),
contains route information from the driver’s last known location to the
upcoming VehicleStop
. Current route information usually comes from the
driver app, except for some cases noted in the documentation for
[DeliveryVehicle.current_route_segment][maps.fleetengine.delivery.v1.DeliveryVehicle.current_route_segment].
The other segments in
Task.journey_sharing_info.remaining_vehicle_journey_segments
(gRPC) or
Task.journeySharingInfo.remainingVehicleJourneySegments
(REST) are
populated by Fleet Engine. They provide route information between the
remaining VehicleStops
.
last_location: Option<DeliveryVehicleLocation>
Indicates the vehicle’s last reported location of the assigned vehicle.
last_location_snappable: bool
Indicates whether the vehicle’s lastLocation can be snapped to
the current_route_segment
. This value is False if either
last_location
or current_route_segment
don’t exist. This value is
computed by Fleet Engine. Updates from clients are ignored.
Trait Implementations§
source§impl Clone for JourneySharingInfo
impl Clone for JourneySharingInfo
source§fn clone(&self) -> JourneySharingInfo
fn clone(&self) -> JourneySharingInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JourneySharingInfo
impl Debug for JourneySharingInfo
source§impl Default for JourneySharingInfo
impl Default for JourneySharingInfo
source§impl Message for JourneySharingInfo
impl Message for JourneySharingInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for JourneySharingInfo
impl PartialEq for JourneySharingInfo
source§fn eq(&self, other: &JourneySharingInfo) -> bool
fn eq(&self, other: &JourneySharingInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JourneySharingInfo
Auto Trait Implementations§
impl Freeze for JourneySharingInfo
impl RefUnwindSafe for JourneySharingInfo
impl Send for JourneySharingInfo
impl Sync for JourneySharingInfo
impl Unpin for JourneySharingInfo
impl UnwindSafe for JourneySharingInfo
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