nomad_client_rs/models/
network_resource.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct NetworkResource {
5    #[serde(rename = "CIDR", skip_serializing_if = "Option::is_none")]
6    pub cidr: Option<String>,
7    #[serde(rename = "DNS", skip_serializing_if = "Option::is_none")]
8    pub dns: Option<crate::models::DnsConfig>,
9    #[serde(rename = "Device", skip_serializing_if = "Option::is_none")]
10    pub device: Option<String>,
11    #[serde(rename = "DynamicPorts", skip_serializing_if = "Option::is_none")]
12    pub dynamic_ports: Option<Vec<crate::models::Port>>,
13    #[serde(rename = "Hostname", skip_serializing_if = "Option::is_none")]
14    pub hostname: Option<String>,
15    #[serde(rename = "IP", skip_serializing_if = "Option::is_none")]
16    pub ip: Option<String>,
17    #[serde(rename = "MBits", skip_serializing_if = "Option::is_none")]
18    pub m_bits: Option<i32>,
19    #[serde(rename = "Mode", skip_serializing_if = "Option::is_none")]
20    pub mode: Option<String>,
21    #[serde(rename = "ReservedPorts", skip_serializing_if = "Option::is_none")]
22    pub reserved_ports: Option<Vec<crate::models::Port>>,
23}