Struct google_api_proto::google::cloud::optimization::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>,
pub total_cost: f64,
}
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.cloud.optimization.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.cloud.optimization.v1.OptimizeToursValidationError] message.
metrics: Option<Metrics>
Duration, distance and usage metrics for this solution.
total_cost: f64
Deprecated: Use [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost] instead. Total cost of the solution. This takes into account all costs: costs per per hour and travel hour, fixed vehicle costs, unperformed shipment penalty costs, global duration cost, etc.
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
source§fn eq(&self, other: &OptimizeToursResponse) -> bool
fn eq(&self, other: &OptimizeToursResponse) -> bool
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
§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