pub struct DrainMetadata {
pub started_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub status: DrainStatus,
pub accessor_id: String,
pub meta: HashMap<String, String>,
}
Expand description
DrainMetadata contains information about the most recent drain operation for a given Node.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§started_at: DateTime<Utc>
§updated_at: DateTime<Utc>
§status: DrainStatus
§accessor_id: String
§meta: HashMap<String, String>
Trait Implementations§
Source§impl Clone for DrainMetadata
impl Clone for DrainMetadata
Source§fn clone(&self) -> DrainMetadata
fn clone(&self) -> DrainMetadata
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 DrainMetadata
impl Debug for DrainMetadata
Source§impl<'de> Deserialize<'de> for DrainMetadata
impl<'de> Deserialize<'de> for DrainMetadata
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 DrainMetadata
impl PartialEq for DrainMetadata
Source§impl Serialize for DrainMetadata
impl Serialize for DrainMetadata
impl StructuralPartialEq for DrainMetadata
Auto Trait Implementations§
impl Freeze for DrainMetadata
impl RefUnwindSafe for DrainMetadata
impl Send for DrainMetadata
impl Sync for DrainMetadata
impl Unpin for DrainMetadata
impl UnwindSafe for DrainMetadata
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