pub struct OptimizeToursResponse {
pub routes: Vec<ShipmentRoute>,
pub request_label: String,
pub skipped_shipments: Vec<SkippedShipment>,
pub validation_errors: Vec<OptimizeToursValidationError>,
pub metrics: Option<Metrics>,
}
Expand description
Response after solving a tour optimization problem containing the routes followed by each vehicle, the shipments which have been skipped and the overall cost of the solution.
Fields§
§routes: Vec<ShipmentRoute>
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.
request_label: String
Copy of the [OptimizeToursRequest.label][google.maps.routeoptimization.v1.OptimizeToursRequest.label], if a label was specified in the request.
skipped_shipments: Vec<SkippedShipment>
The list of all shipments skipped.
validation_errors: Vec<OptimizeToursValidationError>
List of all the validation errors that we were able to detect
independently. See the “MULTIPLE ERRORS” explanation for the
[OptimizeToursValidationError][google.maps.routeoptimization.v1.OptimizeToursValidationError]
message. Instead of errors, this will include warnings in the case
solving_mode
is DEFAULT_SOLVE
.
metrics: Option<Metrics>
Duration, distance and usage metrics for this solution.
Trait Implementations§
Source§impl Clone for OptimizeToursResponse
impl Clone for OptimizeToursResponse
Source§fn clone(&self) -> OptimizeToursResponse
fn clone(&self) -> OptimizeToursResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OptimizeToursResponse
impl Debug for OptimizeToursResponse
Source§impl Default for OptimizeToursResponse
impl Default for OptimizeToursResponse
Source§impl Message for OptimizeToursResponse
impl Message for OptimizeToursResponse
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 OptimizeToursResponse
impl PartialEq for OptimizeToursResponse
impl StructuralPartialEq for OptimizeToursResponse
Auto Trait Implementations§
impl Freeze for OptimizeToursResponse
impl RefUnwindSafe for OptimizeToursResponse
impl Send for OptimizeToursResponse
impl Sync for OptimizeToursResponse
impl Unpin for OptimizeToursResponse
impl UnwindSafe for OptimizeToursResponse
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