podman_rest_client/v5/models/network_inspect_report.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3pub struct NetworkInspectReport {
4 pub containers:
5 Option<std::collections::HashMap<String, crate::v5::models::NetworkContainerInfo>>,
6 /// Created contains the timestamp when this network was created.
7 pub created: Option<String>,
8 /// DNSEnabled is whether name resolution is active for container on
9 /// this Network. Only supported with the bridge driver.
10 pub dns_enabled: Option<bool>,
11 /// Driver for this Network, e.g. bridge, macvlan...
12 pub driver: Option<String>,
13 /// ID of the Network.
14 pub id: Option<String>,
15 /// Internal is whether the Network should not have external routes
16 /// to public or other Networks.
17 pub internal: Option<bool>,
18 /// IPAMOptions contains options used for the ip assignment.
19 pub ipam_options: Option<std::collections::HashMap<String, String>>,
20 /// IPv6Enabled if set to true an ipv6 subnet should be created for this net.
21 pub ipv6_enabled: Option<bool>,
22 /// Labels is a set of key-value labels that have been applied to the
23 /// Network.
24 pub labels: Option<std::collections::HashMap<String, String>>,
25 /// Name of the Network.
26 pub name: Option<String>,
27 /// List of custom DNS server for podman's DNS resolver at network level,
28 /// all the containers attached to this network will consider resolvers
29 /// configured at network level.
30 pub network_dns_servers: Option<Vec<String>>,
31 /// NetworkInterface is the network interface name on the host.
32 pub network_interface: Option<String>,
33 /// Options is a set of key-value options that have been applied to
34 /// the Network.
35 pub options: Option<std::collections::HashMap<String, String>>,
36 /// Routes to use for this network.
37 pub routes: Option<Vec<crate::v5::models::Route>>,
38 /// Subnets to use for this network.
39 pub subnets: Option<Vec<crate::v5::models::Subnet>>,
40}