nomad_client_rs/models/
sidecar_task.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct SidecarTask {
5 #[serde(rename = "Config", skip_serializing_if = "Option::is_none")]
6 pub config: Option<::std::collections::HashMap<String, serde_json::Value>>,
7 #[serde(rename = "Driver", skip_serializing_if = "Option::is_none")]
8 pub driver: Option<String>,
9 #[serde(rename = "Env", skip_serializing_if = "Option::is_none")]
10 pub env: Option<::std::collections::HashMap<String, String>>,
11 #[serde(rename = "KillSignal", skip_serializing_if = "Option::is_none")]
12 pub kill_signal: Option<String>,
13 #[serde(rename = "KillTimeout", skip_serializing_if = "Option::is_none")]
14 pub kill_timeout: Option<i64>,
15 #[serde(rename = "LogConfig", skip_serializing_if = "Option::is_none")]
16 pub log_config: Option<crate::models::LogConfig>,
17 #[serde(rename = "Meta", skip_serializing_if = "Option::is_none")]
18 pub meta: Option<::std::collections::HashMap<String, String>>,
19 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
20 pub name: Option<String>,
21 #[serde(rename = "Resources", skip_serializing_if = "Option::is_none")]
22 pub resources: Option<crate::models::Resources>,
23 #[serde(rename = "ShutdownDelay", skip_serializing_if = "Option::is_none")]
24 pub shutdown_delay: Option<i64>,
25 #[serde(rename = "User", skip_serializing_if = "Option::is_none")]
26 pub user: Option<String>,
27}