Enum Level (0.5.0)

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.

Working with unknown values

This enum is defined as #[non_exhaustive] because Google Cloud may add additional enum variants at any time. Adding new variants is not considered a breaking change. Applications should write their code in anticipation of:

  • New values appearing in future releases of the client library, and
  • New values received dynamically, without application changes.

Please consult the Working with enums section in the user guide for some guidelines.

Enum Variants

Name Description
Unspecified

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

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

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

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.

UnknownValue

If set, the enum was initialized with an unknown value.

Applications can examine the value using [Level::value] or [Level::name].

Implementations

Name Description
value
 fn value(self: &Self) -> std::option::Option<i32>

Gets the enum value.

Returns None if the enum contains an unknown value deserialized from the string representation of enums.

name
 fn name(self: &Self) -> std::option::Option<&str>

Gets the enum value as a string.

Returns None if the enum contains an unknown value deserialized from the integer representation of enums.