nomad_client_rs/models/
template.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Template {
5    #[serde(rename = "ChangeMode", skip_serializing_if = "Option::is_none")]
6    pub change_mode: Option<String>,
7    #[serde(rename = "ChangeScript", skip_serializing_if = "Option::is_none")]
8    pub change_script: Option<crate::models::ChangeScript>,
9    #[serde(rename = "ChangeSignal", skip_serializing_if = "Option::is_none")]
10    pub change_signal: Option<String>,
11    #[serde(rename = "DestPath", skip_serializing_if = "Option::is_none")]
12    pub dest_path: Option<String>,
13    #[serde(rename = "EmbeddedTmpl", skip_serializing_if = "Option::is_none")]
14    pub embedded_tmpl: Option<String>,
15    #[serde(rename = "Envvars", skip_serializing_if = "Option::is_none")]
16    pub envvars: Option<bool>,
17    #[serde(rename = "Gid", skip_serializing_if = "Option::is_none")]
18    pub gid: Option<i32>,
19    #[serde(rename = "LeftDelim", skip_serializing_if = "Option::is_none")]
20    pub left_delim: Option<String>,
21    #[serde(rename = "Perms", skip_serializing_if = "Option::is_none")]
22    pub perms: Option<String>,
23    #[serde(rename = "RightDelim", skip_serializing_if = "Option::is_none")]
24    pub right_delim: Option<String>,
25    #[serde(rename = "SourcePath", skip_serializing_if = "Option::is_none")]
26    pub source_path: Option<String>,
27    #[serde(rename = "Splay", skip_serializing_if = "Option::is_none")]
28    pub splay: Option<i64>,
29    #[serde(rename = "Uid", skip_serializing_if = "Option::is_none")]
30    pub uid: Option<i32>,
31    #[serde(rename = "VaultGrace", skip_serializing_if = "Option::is_none")]
32    pub vault_grace: Option<i64>,
33    #[serde(rename = "Wait", skip_serializing_if = "Option::is_none")]
34    pub wait: Option<crate::models::WaitConfig>,
35}