Struct google_api_proto::google::maps::routeoptimization::v1::AggregatedMetrics
source · pub struct AggregatedMetrics {
pub performed_shipment_count: i32,
pub travel_duration: Option<Duration>,
pub wait_duration: Option<Duration>,
pub delay_duration: Option<Duration>,
pub break_duration: Option<Duration>,
pub visit_duration: Option<Duration>,
pub total_duration: Option<Duration>,
pub travel_distance_meters: f64,
pub max_loads: BTreeMap<String, VehicleLoad>,
}
Expand description
Aggregated metrics for [ShipmentRoute][google.maps.routeoptimization.v1.ShipmentRoute] (resp. for [OptimizeToursResponse][google.maps.routeoptimization.v1.OptimizeToursResponse] over all [Transition][google.maps.routeoptimization.v1.ShipmentRoute.Transition] and/or [Visit][google.maps.routeoptimization.v1.ShipmentRoute.Visit] (resp. over all [ShipmentRoute][google.maps.routeoptimization.v1.ShipmentRoute]) elements.
Fields§
§performed_shipment_count: i32
Number of shipments performed. Note that a pickup and delivery pair only counts once.
travel_duration: Option<Duration>
Total travel duration for a route or a solution.
wait_duration: Option<Duration>
Total wait duration for a route or a solution.
delay_duration: Option<Duration>
Total delay duration for a route or a solution.
break_duration: Option<Duration>
Total break duration for a route or a solution.
visit_duration: Option<Duration>
Total visit duration for a route or a solution.
total_duration: Option<Duration>
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to:
[ShipmentRoute.vehicle_end_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_end_time]
-
[ShipmentRoute.vehicle_start_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_start_time]
travel_distance_meters: f64
Total travel distance for a route or a solution.
max_loads: BTreeMap<String, VehicleLoad>
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all [Transition.vehicle_loads][google.maps.routeoptimization.v1.ShipmentRoute.Transition.vehicle_loads] (resp. [ShipmentRoute.metrics.max_loads][google.maps.routeoptimization.v1.AggregatedMetrics.max_loads].
Trait Implementations§
source§impl Clone for AggregatedMetrics
impl Clone for AggregatedMetrics
source§fn clone(&self) -> AggregatedMetrics
fn clone(&self) -> AggregatedMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AggregatedMetrics
impl Debug for AggregatedMetrics
source§impl Default for AggregatedMetrics
impl Default for AggregatedMetrics
source§impl Message for AggregatedMetrics
impl Message for AggregatedMetrics
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 AggregatedMetrics
impl PartialEq for AggregatedMetrics
source§fn eq(&self, other: &AggregatedMetrics) -> bool
fn eq(&self, other: &AggregatedMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AggregatedMetrics
Auto Trait Implementations§
impl Freeze for AggregatedMetrics
impl RefUnwindSafe for AggregatedMetrics
impl Send for AggregatedMetrics
impl Sync for AggregatedMetrics
impl Unpin for AggregatedMetrics
impl UnwindSafe for AggregatedMetrics
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