Struct google_api_proto::google::maps::routeoptimization::v1::OptimizeToursResponse
source · 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.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for OptimizeToursResponse
impl PartialEq for OptimizeToursResponse
source§fn eq(&self, other: &OptimizeToursResponse) -> bool
fn eq(&self, other: &OptimizeToursResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request