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 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<'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
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 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