nomad_client_rs/models/
deployment.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Deployment {
5    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
6    pub create_index: Option<i32>,
7    #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
8    pub id: Option<String>,
9    #[serde(rename = "IsMultiregion", skip_serializing_if = "Option::is_none")]
10    pub is_multiregion: Option<bool>,
11    #[serde(rename = "JobCreateIndex", skip_serializing_if = "Option::is_none")]
12    pub job_create_index: Option<i32>,
13    #[serde(rename = "JobID", skip_serializing_if = "Option::is_none")]
14    pub job_id: Option<String>,
15    #[serde(rename = "JobModifyIndex", skip_serializing_if = "Option::is_none")]
16    pub job_modify_index: Option<i32>,
17    #[serde(rename = "JobSpecModifyIndex", skip_serializing_if = "Option::is_none")]
18    pub job_spec_modify_index: Option<i32>,
19    #[serde(rename = "JobVersion", skip_serializing_if = "Option::is_none")]
20    pub job_version: Option<i32>,
21    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
22    pub modify_index: Option<i32>,
23    #[serde(rename = "Namespace", skip_serializing_if = "Option::is_none")]
24    pub namespace: Option<String>,
25    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
26    pub status: Option<String>,
27    #[serde(rename = "StatusDescription", skip_serializing_if = "Option::is_none")]
28    pub status_description: Option<String>,
29    #[serde(rename = "TaskGroups", skip_serializing_if = "Option::is_none")]
30    pub task_groups: Option<::std::collections::HashMap<String, crate::models::DeploymentState>>,
31}