nomad_client/models/
port.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 Port {
16    #[serde(rename = "Label", skip_serializing_if = "Option::is_none")]
17    pub label: Option<String>,
18    #[serde(rename = "Value", skip_serializing_if = "Option::is_none")]
19    pub value: Option<i32>,
20    #[serde(rename = "To", skip_serializing_if = "Option::is_none")]
21    pub to: Option<i32>,
22}
23
24impl Port {
25    pub fn new() -> Port {
26        Port {
27            label: None,
28            value: None,
29            to: None,
30        }
31    }
32}
33
34