nomad_client_rs/models/
restart_policy.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct RestartPolicy {
5 #[serde(rename = "Attempts", skip_serializing_if = "Option::is_none")]
6 pub attempts: Option<i32>,
7 #[serde(rename = "Delay", skip_serializing_if = "Option::is_none")]
8 pub delay: Option<i64>,
9 #[serde(rename = "Interval", skip_serializing_if = "Option::is_none")]
10 pub interval: Option<i64>,
11 #[serde(rename = "Mode", skip_serializing_if = "Option::is_none")]
12 pub mode: Option<String>,
13}