podman_rest_client/v5/models/
network_settings.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// NetworkSettings exposes the network settings in the api
4pub struct NetworkSettings {
5    #[serde(rename = "Bridge")]
6    pub bridge: Option<String>,
7    #[serde(rename = "EndpointID")]
8    pub endpoint_id: Option<String>,
9    #[serde(rename = "Gateway")]
10    pub gateway: Option<String>,
11    #[serde(rename = "GlobalIPv6Address")]
12    pub global_i_pv6_address: Option<String>,
13    #[serde(rename = "GlobalIPv6PrefixLen")]
14    pub global_i_pv6_prefix_len: Option<i64>,
15    /// HairpinMode specifies if hairpin NAT should be enabled on the virtual interface
16    ///
17    /// Deprecated: This field is never set and will be removed in a future release.
18    #[serde(rename = "HairpinMode")]
19    pub hairpin_mode: Option<bool>,
20    #[serde(rename = "IPAddress")]
21    pub ip_address: Option<String>,
22    #[serde(rename = "IPPrefixLen")]
23    pub ip_prefix_len: Option<i64>,
24    #[serde(rename = "IPv6Gateway")]
25    pub i_pv6_gateway: Option<String>,
26    /// LinkLocalIPv6Address is an IPv6 unicast address using the link-local prefix
27    ///
28    /// Deprecated: This field is never set and will be removed in a future release.
29    #[serde(rename = "LinkLocalIPv6Address")]
30    pub link_local_i_pv6_address: Option<String>,
31    /// LinkLocalIPv6PrefixLen is the prefix length of an IPv6 unicast address
32    ///
33    /// Deprecated: This field is never set and will be removed in a future release.
34    #[serde(rename = "LinkLocalIPv6PrefixLen")]
35    pub link_local_i_pv6_prefix_len: Option<i64>,
36    #[serde(rename = "MacAddress")]
37    pub mac_address: Option<String>,
38    #[serde(rename = "Networks")]
39    pub networks: Option<std::collections::HashMap<String, crate::v5::models::EndpointSettings>>,
40    #[serde(rename = "Ports")]
41    pub ports: Option<std::collections::HashMap<String, Vec<crate::v5::models::PortBinding>>>,
42    #[serde(rename = "SandboxID")]
43    pub sandbox_id: Option<String>,
44    #[serde(rename = "SandboxKey")]
45    pub sandbox_key: Option<String>,
46    #[serde(rename = "SecondaryIPAddresses")]
47    pub secondary_ip_addresses: Option<Vec<crate::v5::models::Address>>,
48    #[serde(rename = "SecondaryIPv6Addresses")]
49    pub secondary_i_pv6_addresses: Option<Vec<crate::v5::models::Address>>,
50}