Struct google_api_proto::maps::fleetengine::v1::TripWaypoint
source · pub struct TripWaypoint {
pub location: Option<TerminalLocation>,
pub trip_id: String,
pub waypoint_type: i32,
pub path_to_waypoint: Vec<LatLng>,
pub encoded_path_to_waypoint: String,
pub traffic_to_waypoint: Option<ConsumableTrafficPolyline>,
pub distance_meters: Option<i32>,
pub eta: Option<Timestamp>,
pub duration: Option<Duration>,
}
Expand description
Describes a stopping point on a vehicle’s route or an ending point on a vehicle’s trip.
Fields§
§location: Option<TerminalLocation>
The location of this waypoint.
trip_id: String
The trip associated with this waypoint.
waypoint_type: i32
The role this waypoint plays in this trip, such as pickup or dropoff.
path_to_waypoint: Vec<LatLng>
The path from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list. This field is only populated when requested.
encoded_path_to_waypoint: String
The encoded path from the previous waypoint to the current waypoint.
Note: This field is intended only for use by the Driver SDK and Consumer SDK. Decoding is not yet supported.
traffic_to_waypoint: Option<ConsumableTrafficPolyline>
The traffic conditions along the path to this waypoint. Note that traffic is only available for Google Map Platform Rides and Deliveries Solution customers.
distance_meters: Option<i32>
The path distance from the previous waypoint to the current waypoint. Undefined for the first waypoint in a list.
eta: Option<Timestamp>
The estimated time of arrival at this waypoint. Undefined for the first waypoint in a list.
duration: Option<Duration>
The travel time from previous waypoint to this point. Undefined for the first waypoint in a list.
Implementations§
source§impl TripWaypoint
impl TripWaypoint
sourcepub fn waypoint_type(&self) -> WaypointType
pub fn waypoint_type(&self) -> WaypointType
Returns the enum value of waypoint_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_waypoint_type(&mut self, value: WaypointType)
pub fn set_waypoint_type(&mut self, value: WaypointType)
Sets waypoint_type
to the provided enum value.
Trait Implementations§
source§impl Clone for TripWaypoint
impl Clone for TripWaypoint
source§fn clone(&self) -> TripWaypoint
fn clone(&self) -> TripWaypoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TripWaypoint
impl Debug for TripWaypoint
source§impl Default for TripWaypoint
impl Default for TripWaypoint
source§impl Message for TripWaypoint
impl Message for TripWaypoint
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 TripWaypoint
impl PartialEq for TripWaypoint
source§fn eq(&self, other: &TripWaypoint) -> bool
fn eq(&self, other: &TripWaypoint) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TripWaypoint
Auto Trait Implementations§
impl Freeze for TripWaypoint
impl RefUnwindSafe for TripWaypoint
impl Send for TripWaypoint
impl Sync for TripWaypoint
impl Unpin for TripWaypoint
impl UnwindSafe for TripWaypoint
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