pub struct CheckRestart {
pub limit: Option<i64>,
pub grace: Option<TimeDelta>,
pub ignore_warnings: Option<bool>,
}
Expand description
CheckRestart describes if and when a task should be restarted based on failing health checks.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§limit: Option<i64>
§grace: Option<TimeDelta>
§ignore_warnings: Option<bool>
Implementations§
Source§impl CheckRestart
impl CheckRestart
pub fn builder() -> CheckRestartBuilder
Trait Implementations§
Source§impl Clone for CheckRestart
impl Clone for CheckRestart
Source§fn clone(&self) -> CheckRestart
fn clone(&self) -> CheckRestart
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 CheckRestart
impl Debug for CheckRestart
Source§impl<'de> Deserialize<'de> for CheckRestart
impl<'de> Deserialize<'de> for CheckRestart
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 CheckRestart
impl PartialEq for CheckRestart
Source§impl Serialize for CheckRestart
impl Serialize for CheckRestart
impl StructuralPartialEq for CheckRestart
Auto Trait Implementations§
impl Freeze for CheckRestart
impl RefUnwindSafe for CheckRestart
impl Send for CheckRestart
impl Sync for CheckRestart
impl Unpin for CheckRestart
impl UnwindSafe for CheckRestart
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