nomad_client_rs/models/
drain_metadata.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct DrainMetadata {
5    #[serde(rename = "AccessorID", skip_serializing_if = "Option::is_none")]
6    pub accessor_id: Option<String>,
7    #[serde(rename = "Meta", skip_serializing_if = "Option::is_none")]
8    pub meta: Option<::std::collections::HashMap<String, String>>,
9    #[serde(rename = "StartedAt", skip_serializing_if = "Option::is_none")]
10    pub started_at: Option<String>,
11    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
12    pub status: Option<String>,
13    #[serde(rename = "UpdatedAt", skip_serializing_if = "Option::is_none")]
14    pub updated_at: Option<String>,
15}