nomad_client/models/
spread.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 Spread {
16    #[serde(rename = "Attribute", skip_serializing_if = "Option::is_none")]
17    pub attribute: Option<String>,
18    #[serde(rename = "Weight", skip_serializing_if = "Option::is_none")]
19    pub weight: Option<i32>,
20    #[serde(rename = "SpreadTarget", skip_serializing_if = "Option::is_none")]
21    pub spread_target: Option<Vec<crate::models::SpreadTarget>>,
22}
23
24impl Spread {
25    pub fn new() -> Spread {
26        Spread {
27            attribute: None,
28            weight: None,
29            spread_target: None,
30        }
31    }
32}
33
34