pub struct InspectRestartPolicy {
pub maximum_retry_count: Option<u64>,
pub name: Option<String>,
}
Available on crate feature
v5
only.Expand description
InspectRestartPolicy holds information about the container’s restart policy.
Fields§
§maximum_retry_count: Option<u64>
MaximumRetryCount is the maximum number of retries allowed if the “on-failure” restart policy is in use. Not used if “on-failure” is not set.
name: Option<String>
Name contains the container’s restart policy. Allowable values are “no” or “” (take no action), “on-failure” (restart on non-zero exit code, with an optional max retry count), and “always” (always restart on container stop, unless explicitly requested by API). Note that this is NOT actually a name of any sort - the poor naming is for Docker compatibility.
Trait Implementations§
Source§impl Debug for InspectRestartPolicy
impl Debug for InspectRestartPolicy
Source§impl Default for InspectRestartPolicy
impl Default for InspectRestartPolicy
Source§fn default() -> InspectRestartPolicy
fn default() -> InspectRestartPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InspectRestartPolicy
impl<'de> Deserialize<'de> for InspectRestartPolicy
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
Auto Trait Implementations§
impl Freeze for InspectRestartPolicy
impl RefUnwindSafe for InspectRestartPolicy
impl Send for InspectRestartPolicy
impl Sync for InspectRestartPolicy
impl Unpin for InspectRestartPolicy
impl UnwindSafe for InspectRestartPolicy
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