pub struct InspectRestartPolicy {
pub maximum_retry_count: Option<i32>,
pub name: Option<String>,
}
Fields§
§maximum_retry_count: Option<i32>
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.
Implementations§
Source§impl InspectRestartPolicy
impl InspectRestartPolicy
pub fn new() -> InspectRestartPolicy
Trait Implementations§
Source§impl Clone for InspectRestartPolicy
impl Clone for InspectRestartPolicy
Source§fn clone(&self) -> InspectRestartPolicy
fn clone(&self) -> InspectRestartPolicy
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 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
Source§impl PartialEq for InspectRestartPolicy
impl PartialEq for InspectRestartPolicy
Source§impl Serialize for InspectRestartPolicy
impl Serialize for InspectRestartPolicy
impl StructuralPartialEq for InspectRestartPolicy
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