nomad_client/models/
check_restart.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 CheckRestart {
16    #[serde(rename = "Limit", skip_serializing_if = "Option::is_none")]
17    pub limit: Option<i32>,
18    #[serde(rename = "Grace", skip_serializing_if = "Option::is_none")]
19    pub grace: Option<i64>,
20    #[serde(rename = "IgnoreWarnings", skip_serializing_if = "Option::is_none")]
21    pub ignore_warnings: Option<bool>,
22}
23
24impl CheckRestart {
25    pub fn new() -> CheckRestart {
26        CheckRestart {
27            limit: None,
28            grace: None,
29            ignore_warnings: None,
30        }
31    }
32}
33
34