nomad_client_rs/models/
change_script.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct ChangeScript {
5    #[serde(rename = "Args", skip_serializing_if = "Option::is_none")]
6    pub args: Option<Vec<String>>,
7    #[serde(rename = "Command", skip_serializing_if = "Option::is_none")]
8    pub command: Option<String>,
9    #[serde(rename = "FailOnError", skip_serializing_if = "Option::is_none")]
10    pub fail_on_error: Option<bool>,
11    #[serde(rename = "Timeout", skip_serializing_if = "Option::is_none")]
12    pub timeout: Option<i64>,
13}