Struct bollard_stubs::models::TaskSpecRestartPolicy
source · pub struct TaskSpecRestartPolicy {
pub condition: Option<TaskSpecRestartPolicyConditionEnum>,
pub delay: Option<i64>,
pub max_attempts: Option<i64>,
pub window: Option<i64>,
}
Expand description
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§
source§impl Clone for TaskSpecRestartPolicy
impl Clone for TaskSpecRestartPolicy
source§fn clone(&self) -> TaskSpecRestartPolicy
fn clone(&self) -> TaskSpecRestartPolicy
Returns a copy 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 TaskSpecRestartPolicy
impl Debug for TaskSpecRestartPolicy
source§impl Default for TaskSpecRestartPolicy
impl Default for TaskSpecRestartPolicy
source§fn default() -> TaskSpecRestartPolicy
fn default() -> TaskSpecRestartPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TaskSpecRestartPolicy
impl<'de> Deserialize<'de> for TaskSpecRestartPolicy
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<TaskSpecRestartPolicy> for TaskSpecRestartPolicy
impl PartialEq<TaskSpecRestartPolicy> for TaskSpecRestartPolicy
source§fn eq(&self, other: &TaskSpecRestartPolicy) -> bool
fn eq(&self, other: &TaskSpecRestartPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.