[][src]Struct bollard_stubs::models::TaskSpecRestartPolicy

pub struct TaskSpecRestartPolicy {
    pub condition: Option<TaskSpecRestartPolicyConditionEnum>,
    pub delay: Option<i64>,
    pub max_attempts: Option<i64>,
    pub window: Option<i64>,
}

Specification for the restart policy which applies to containers created as part of this service.

Fields

condition: Option<TaskSpecRestartPolicyConditionEnum>

Condition for restart.

delay: Option<i64>

Delay between restart attempts.

max_attempts: Option<i64>

Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).

window: Option<i64>

Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).

Trait Implementations

impl Clone for TaskSpecRestartPolicy[src]

impl Debug for TaskSpecRestartPolicy[src]

impl Default for TaskSpecRestartPolicy[src]

impl<'de> Deserialize<'de> for TaskSpecRestartPolicy[src]

impl PartialEq<TaskSpecRestartPolicy> for TaskSpecRestartPolicy[src]

impl Serialize for TaskSpecRestartPolicy[src]

impl StructuralPartialEq for TaskSpecRestartPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.