nomad_client_rs/models/
task_state.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct TaskState {
5 #[serde(rename = "Events", skip_serializing_if = "Option::is_none")]
6 pub events: Option<Vec<crate::models::TaskEvent>>,
7 #[serde(rename = "Failed", skip_serializing_if = "Option::is_none")]
8 pub failed: Option<bool>,
9 #[serde(rename = "FinishedAt", skip_serializing_if = "Option::is_none")]
10 pub finished_at: Option<String>,
11 #[serde(rename = "LastRestart", skip_serializing_if = "Option::is_none")]
12 pub last_restart: Option<String>,
13 #[serde(rename = "Restarts", skip_serializing_if = "Option::is_none")]
14 pub restarts: Option<i32>,
15 #[serde(rename = "StartedAt", skip_serializing_if = "Option::is_none")]
16 pub started_at: Option<String>,
17 #[serde(rename = "State", skip_serializing_if = "Option::is_none")]
18 pub state: Option<String>,
19 #[serde(rename = "TaskHandle", skip_serializing_if = "Option::is_none")]
20 pub task_handle: Option<crate::models::TaskHandle>,
21}