Struct google_api_proto::google::cloud::optimization::v1::injected_solution_constraint::ConstraintRelaxation
source · pub struct ConstraintRelaxation {
pub relaxations: Vec<Relaxation>,
pub vehicle_indices: Vec<i32>,
}
Expand description
For a group of vehicles, specifies at what threshold(s) constraints on
visits will be relaxed and to which level. Shipments listed in
the skipped_shipment
field are constrained to be skipped; i.e., they
cannot be performed.
Fields§
§relaxations: Vec<Relaxation>
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices
.
vehicle_indices: Vec<i32>
Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and the
relaxations
apply to all vehicles that are not specified in other
constraint_relaxations
. There can be at most one default, i.e., at
most one constraint relaxation field is allowed empty
vehicle_indices
. A vehicle index can only be listed once, even within
several constraint_relaxations
.
A vehicle index is mapped the same as
[ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index],
if interpret_injected_solutions_using_labels
is true (see fields
comment).
Trait Implementations§
source§impl Clone for ConstraintRelaxation
impl Clone for ConstraintRelaxation
source§fn clone(&self) -> ConstraintRelaxation
fn clone(&self) -> ConstraintRelaxation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConstraintRelaxation
impl Debug for ConstraintRelaxation
source§impl Default for ConstraintRelaxation
impl Default for ConstraintRelaxation
source§impl Message for ConstraintRelaxation
impl Message for ConstraintRelaxation
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 ConstraintRelaxation
impl PartialEq for ConstraintRelaxation
source§fn eq(&self, other: &ConstraintRelaxation) -> bool
fn eq(&self, other: &ConstraintRelaxation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConstraintRelaxation
Auto Trait Implementations§
impl Freeze for ConstraintRelaxation
impl RefUnwindSafe for ConstraintRelaxation
impl Send for ConstraintRelaxation
impl Sync for ConstraintRelaxation
impl Unpin for ConstraintRelaxation
impl UnwindSafe for ConstraintRelaxation
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