pub struct RestartPolicy {
    pub maximum_retry_count: Option<i64>,
    pub name: Option<String>,
}Available on crate feature 
v5 only.Expand description
RestartPolicy represents the restart policies of the container.
Fields§
§maximum_retry_count: Option<i64>§name: Option<String>Trait Implementations§
Source§impl Debug for RestartPolicy
 
impl Debug for RestartPolicy
Source§impl Default for RestartPolicy
 
impl Default for RestartPolicy
Source§fn default() -> RestartPolicy
 
fn default() -> RestartPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RestartPolicy
 
impl<'de> Deserialize<'de> for RestartPolicy
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 RestartPolicy
impl RefUnwindSafe for RestartPolicy
impl Send for RestartPolicy
impl Sync for RestartPolicy
impl Unpin for RestartPolicy
impl UnwindSafe for RestartPolicy
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