pub struct DrainStrategy {
pub force_deadline: DateTime<Utc>,
pub started_at: DateTime<Utc>,
}
Expand description
DrainStrategy describes a Node’s drain behavior.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§force_deadline: DateTime<Utc>
ForceDeadline is the deadline time for the drain after which drains will be forced
started_at: DateTime<Utc>
StartedAt is the time the drain process started
Trait Implementations§
Source§impl Clone for DrainStrategy
impl Clone for DrainStrategy
Source§fn clone(&self) -> DrainStrategy
fn clone(&self) -> DrainStrategy
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 DrainStrategy
impl Debug for DrainStrategy
Source§impl Default for DrainStrategy
impl Default for DrainStrategy
Source§fn default() -> DrainStrategy
fn default() -> DrainStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DrainStrategy
impl<'de> Deserialize<'de> for DrainStrategy
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 DrainStrategy
impl PartialEq for DrainStrategy
Source§impl Serialize for DrainStrategy
impl Serialize for DrainStrategy
impl StructuralPartialEq for DrainStrategy
Auto Trait Implementations§
impl Freeze for DrainStrategy
impl RefUnwindSafe for DrainStrategy
impl Send for DrainStrategy
impl Sync for DrainStrategy
impl Unpin for DrainStrategy
impl UnwindSafe for DrainStrategy
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