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: HashMap<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: HashMap<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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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