pub struct ContainerRestartRule {
pub action: String,
pub exit_codes: Option<ContainerRestartRuleOnExitCodes>,
}
Expand description
ContainerRestartRule describes how a container exit is handled.
Fields§
§action: String
Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is “Restart” to restart the container.
exit_codes: Option<ContainerRestartRuleOnExitCodes>
Represents the exit codes to check on container exits.
Trait Implementations§
Source§impl Clone for ContainerRestartRule
impl Clone for ContainerRestartRule
Source§fn clone(&self) -> ContainerRestartRule
fn clone(&self) -> ContainerRestartRule
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 Debug for ContainerRestartRule
impl Debug for ContainerRestartRule
Source§impl DeepMerge for ContainerRestartRule
impl DeepMerge for ContainerRestartRule
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ContainerRestartRule
impl Default for ContainerRestartRule
Source§fn default() -> ContainerRestartRule
fn default() -> ContainerRestartRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerRestartRule
impl<'de> Deserialize<'de> for ContainerRestartRule
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 ContainerRestartRule
impl PartialEq for ContainerRestartRule
Source§impl Serialize for ContainerRestartRule
impl Serialize for ContainerRestartRule
impl StructuralPartialEq for ContainerRestartRule
Auto Trait Implementations§
impl Freeze for ContainerRestartRule
impl RefUnwindSafe for ContainerRestartRule
impl Send for ContainerRestartRule
impl Sync for ContainerRestartRule
impl Unpin for ContainerRestartRule
impl UnwindSafe for ContainerRestartRule
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