podman_rest_client/v5/models/inspect_additional_network.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// InspectAdditionalNetwork holds information about non-default networks the
4/// container has been connected to.
5/// As with InspectNetworkSettings, many fields are unused and maintained only
6/// for compatibility with Docker.
7pub struct InspectAdditionalNetwork {
8 /// AdditionalMacAddresses is a set of additional MAC Addresses beyond
9 /// the first. CNI may configure more than one interface for a single
10 /// network, which can cause this.
11 #[serde(rename = "AdditionalMACAddresses")]
12 pub additional_mac_addresses: Option<Vec<String>>,
13 /// Aliases are any network aliases the container has in this network.
14 #[serde(rename = "Aliases")]
15 pub aliases: Option<Vec<String>>,
16 /// DriverOpts is presently unused and maintained exclusively for
17 /// compatibility.
18 #[serde(rename = "DriverOpts")]
19 pub driver_opts: Option<std::collections::HashMap<String, String>>,
20 /// EndpointID is unused, maintained exclusively for compatibility.
21 #[serde(rename = "EndpointID")]
22 pub endpoint_id: Option<String>,
23 /// Gateway is the IP address of the gateway this network will use.
24 #[serde(rename = "Gateway")]
25 pub gateway: Option<String>,
26 /// GlobalIPv6Address is the global-scope IPv6 Address for this network.
27 #[serde(rename = "GlobalIPv6Address")]
28 pub global_i_pv6_address: Option<String>,
29 /// GlobalIPv6PrefixLen is the length of the subnet mask of this network.
30 #[serde(rename = "GlobalIPv6PrefixLen")]
31 pub global_i_pv6_prefix_len: Option<i64>,
32 /// IPAMConfig is presently unused and maintained exclusively for
33 /// compatibility.
34 #[serde(rename = "IPAMConfig")]
35 pub ipam_config: Option<std::collections::HashMap<String, String>>,
36 /// IPAddress is the IP address for this network.
37 #[serde(rename = "IPAddress")]
38 pub ip_address: Option<String>,
39 /// IPPrefixLen is the length of the subnet mask of this network.
40 #[serde(rename = "IPPrefixLen")]
41 pub ip_prefix_len: Option<i64>,
42 /// IPv6Gateway is the IPv6 gateway this network will use.
43 #[serde(rename = "IPv6Gateway")]
44 pub i_pv6_gateway: Option<String>,
45 /// Links is presently unused and maintained exclusively for
46 /// compatibility.
47 #[serde(rename = "Links")]
48 pub links: Option<Vec<String>>,
49 /// MacAddress is the MAC address for the interface in this network.
50 #[serde(rename = "MacAddress")]
51 pub mac_address: Option<String>,
52 /// Name of the network we're connecting to.
53 #[serde(rename = "NetworkID")]
54 pub network_id: Option<String>,
55 /// SecondaryIPAddresses is a list of extra IP Addresses that the
56 /// container has been assigned in this network.
57 #[serde(rename = "SecondaryIPAddresses")]
58 pub secondary_ip_addresses: Option<Vec<crate::v5::models::Address>>,
59 /// SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the
60 /// container has been assigned in this network.
61 #[serde(rename = "SecondaryIPv6Addresses")]
62 pub secondary_i_pv6_addresses: Option<Vec<crate::v5::models::Address>>,
63}