pub struct DrainOptions {
pub drain_spec: Option<DrainSpec>,
pub mark_eligible: bool,
pub meta: HashMap<String, String>,
}
Expand description
DrainOptions is used to pass through node drain parameters
This struct was generated based on the Go types of the official Nomad API.
Fields§
§drain_spec: Option<DrainSpec>
DrainSpec contains the drain specification for the node. If non-nil, the node will be marked ineligible and begin/continue draining according to the provided drain spec. If nil, any existing drain operation will be canceled.
mark_eligible: bool
MarkEligible indicates whether the node should be marked as eligible when canceling a drain operation.
meta: HashMap<String, String>
Meta is metadata that is persisted in Node.LastDrain about this drain update.
Trait Implementations§
Source§impl Clone for DrainOptions
impl Clone for DrainOptions
Source§fn clone(&self) -> DrainOptions
fn clone(&self) -> DrainOptions
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 DrainOptions
impl Debug for DrainOptions
Source§impl Default for DrainOptions
impl Default for DrainOptions
Source§fn default() -> DrainOptions
fn default() -> DrainOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DrainOptions
impl<'de> Deserialize<'de> for DrainOptions
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 DrainOptions
impl PartialEq for DrainOptions
Source§impl Serialize for DrainOptions
impl Serialize for DrainOptions
impl StructuralPartialEq for DrainOptions
Auto Trait Implementations§
impl Freeze for DrainOptions
impl RefUnwindSafe for DrainOptions
impl Send for DrainOptions
impl Sync for DrainOptions
impl Unpin for DrainOptions
impl UnwindSafe for DrainOptions
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