pub struct ContainerRestartRuleOnExitCodes {
pub operator: String,
pub values: Option<Vec<i32>>,
}Expand description
ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.
Fields§
§operator: StringRepresents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values.
- NotIn: the requirement is satisfied if the container exit code is not in the set of specified values.
values: Option<Vec<i32>>Specifies the set of values to check for container exit codes. At most 255 elements are allowed.
Trait Implementations§
Source§impl Clone for ContainerRestartRuleOnExitCodes
impl Clone for ContainerRestartRuleOnExitCodes
Source§fn clone(&self) -> ContainerRestartRuleOnExitCodes
fn clone(&self) -> ContainerRestartRuleOnExitCodes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeepMerge for ContainerRestartRuleOnExitCodes
impl DeepMerge for ContainerRestartRuleOnExitCodes
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl Default for ContainerRestartRuleOnExitCodes
impl Default for ContainerRestartRuleOnExitCodes
Source§fn default() -> ContainerRestartRuleOnExitCodes
fn default() -> ContainerRestartRuleOnExitCodes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerRestartRuleOnExitCodes
impl<'de> Deserialize<'de> for ContainerRestartRuleOnExitCodes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ContainerRestartRuleOnExitCodes
Available on crate feature schemars only.
impl JsonSchema for ContainerRestartRuleOnExitCodes
Available on crate feature
schemars only.Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for ContainerRestartRuleOnExitCodes
Auto Trait Implementations§
impl Freeze for ContainerRestartRuleOnExitCodes
impl RefUnwindSafe for ContainerRestartRuleOnExitCodes
impl Send for ContainerRestartRuleOnExitCodes
impl Sync for ContainerRestartRuleOnExitCodes
impl Unpin for ContainerRestartRuleOnExitCodes
impl UnsafeUnpin for ContainerRestartRuleOnExitCodes
impl UnwindSafe for ContainerRestartRuleOnExitCodes
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