Enum google_api_proto::google::cloud::optimization::v1::injected_solution_constraint::constraint_relaxation::relaxation::Level
source · #[repr(i32)]pub enum Level {
Unspecified = 0,
RelaxVisitTimesAfterThreshold = 1,
RelaxVisitTimesAndSequenceAfterThreshold = 2,
RelaxAllAfterThreshold = 3,
}
Expand description
Expresses the different constraint relaxation levels, which are applied for a visit and those that follow when it satisfies the threshold conditions.
The enumeration below is in order of increasing relaxation.
Variants§
Unspecified = 0
Implicit default relaxation level: no constraints are relaxed, i.e., all visits are fully constrained.
This value must not be explicitly used in level
.
RelaxVisitTimesAfterThreshold = 1
Visit start times and vehicle start/end times will be relaxed, but each visit remains bound to the same vehicle and the visit sequence must be observed: no visit can be inserted between them or before them.
RelaxVisitTimesAndSequenceAfterThreshold = 2
Same as RELAX_VISIT_TIMES_AFTER_THRESHOLD
, but the visit sequence
is also relaxed: visits can only be performed by this vehicle, but
can potentially become unperformed.
RelaxAllAfterThreshold = 3
Same as RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD
, but the
vehicle is also relaxed: visits are completely free at or after the
threshold time and can potentially become unperformed.
Implementations§
source§impl Level
impl Level
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Level
impl Ord for Level
source§impl PartialEq for Level
impl PartialEq for Level
source§impl PartialOrd for Level
impl PartialOrd for Level
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Level
impl TryFrom<i32> for Level
§type Error = DecodeError
type Error = DecodeError
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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