nomad_client/models/
restart_policy.rs

1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RestartPolicy {
16    #[serde(rename = "Interval", skip_serializing_if = "Option::is_none")]
17    pub interval: Option<i64>,
18    #[serde(rename = "Attempts", skip_serializing_if = "Option::is_none")]
19    pub attempts: Option<i32>,
20    #[serde(rename = "Delay", skip_serializing_if = "Option::is_none")]
21    pub delay: Option<i64>,
22    #[serde(rename = "Mode", skip_serializing_if = "Option::is_none")]
23    pub mode: Option<String>,
24}
25
26impl RestartPolicy {
27    pub fn new() -> RestartPolicy {
28        RestartPolicy {
29            interval: None,
30            attempts: None,
31            delay: None,
32            mode: None,
33        }
34    }
35}
36
37