pub struct ContainerUpdateRestartPolicy {
pub name: Option<String>,
pub maximum_retry_count: Option<i64>,
}Expand description
Restart policy entry for ContainerUpdateRequest.
Mirrors Docker’s HostConfig.RestartPolicy shape so the Docker compat
layer can pass the wire payload through unchanged. name accepts the
same set of strings as docker run --restart: "", "no", "always",
"unless-stopped", or "on-failure". maximum_retry_count is only
honoured when name == "on-failure".
Fields§
§name: Option<String>"no", "always", "unless-stopped", or "on-failure".
maximum_retry_count: Option<i64>Maximum number of retries before giving up (only used with
on-failure). When 0 or omitted, retries are unbounded.
Trait Implementations§
Source§impl Clone for ContainerUpdateRestartPolicy
impl Clone for ContainerUpdateRestartPolicy
Source§fn clone(&self) -> ContainerUpdateRestartPolicy
fn clone(&self) -> ContainerUpdateRestartPolicy
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 ComposeSchema for ContainerUpdateRestartPolicy
impl ComposeSchema for ContainerUpdateRestartPolicy
Source§impl Debug for ContainerUpdateRestartPolicy
impl Debug for ContainerUpdateRestartPolicy
Source§impl Default for ContainerUpdateRestartPolicy
impl Default for ContainerUpdateRestartPolicy
Source§fn default() -> ContainerUpdateRestartPolicy
fn default() -> ContainerUpdateRestartPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerUpdateRestartPolicy
impl<'de> Deserialize<'de> for ContainerUpdateRestartPolicy
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 ContainerUpdateRestartPolicy
impl PartialEq for ContainerUpdateRestartPolicy
Source§fn eq(&self, other: &ContainerUpdateRestartPolicy) -> bool
fn eq(&self, other: &ContainerUpdateRestartPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContainerUpdateRestartPolicy
impl StructuralPartialEq for ContainerUpdateRestartPolicy
Auto Trait Implementations§
impl Freeze for ContainerUpdateRestartPolicy
impl RefUnwindSafe for ContainerUpdateRestartPolicy
impl Send for ContainerUpdateRestartPolicy
impl Sync for ContainerUpdateRestartPolicy
impl Unpin for ContainerUpdateRestartPolicy
impl UnsafeUnpin for ContainerUpdateRestartPolicy
impl UnwindSafe for ContainerUpdateRestartPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.