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: String
Represents 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 · 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 PartialEq for ContainerRestartRuleOnExitCodes
impl PartialEq for ContainerRestartRuleOnExitCodes
Source§fn eq(&self, other: &ContainerRestartRuleOnExitCodes) -> bool
fn eq(&self, other: &ContainerRestartRuleOnExitCodes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl 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 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