Struct bollard::secret::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<TaskSpecRestartPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpecRestartPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TaskSpecRestartPolicy
impl PartialEq for TaskSpecRestartPolicy
source§impl Serialize for TaskSpecRestartPolicy
impl Serialize for TaskSpecRestartPolicy
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TaskSpecRestartPolicy
Auto Trait Implementations§
impl Freeze for TaskSpecRestartPolicy
impl RefUnwindSafe for TaskSpecRestartPolicy
impl Send for TaskSpecRestartPolicy
impl Sync for TaskSpecRestartPolicy
impl Unpin for TaskSpecRestartPolicy
impl UnwindSafe for TaskSpecRestartPolicy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)