podman_rest_client/v5/models/
network_create_libpod.rs

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