pub struct NetworkCreateNetworkConfigParam {
pub attachable: Option<bool>,
pub check_duplicate: Option<bool>,
pub driver: Option<String>,
pub enable_i_pv_6: Option<bool>,
pub ipam: Option<Ipam>,
pub ingress: Option<bool>,
pub internal: Option<bool>,
pub labels: Option<HashMap<String, String>>,
pub name: String,
pub options: Option<HashMap<String, String>>,
}
Fields§
§attachable: Option<bool>
Globally scoped network is manually attachable by regular containers from workers in swarm mode.
check_duplicate: Option<bool>
Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions.
driver: Option<String>
Name of the network driver plugin to use.
enable_i_pv_6: Option<bool>
Enable IPv6 on the network.
ipam: Option<Ipam>
§ingress: Option<bool>
Ingress network is the network which provides the routing-mesh in swarm mode.
internal: Option<bool>
Restrict external access to the network.
labels: Option<HashMap<String, String>>
User-defined key/value metadata.
name: String
The network’s name.
options: Option<HashMap<String, String>>
Network specific options to be used by the drivers.
Trait Implementations§
Source§impl Clone for NetworkCreateNetworkConfigParam
impl Clone for NetworkCreateNetworkConfigParam
Source§fn clone(&self) -> NetworkCreateNetworkConfigParam
fn clone(&self) -> NetworkCreateNetworkConfigParam
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for NetworkCreateNetworkConfigParam
impl<'de> Deserialize<'de> for NetworkCreateNetworkConfigParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkCreateNetworkConfigParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkCreateNetworkConfigParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for NetworkCreateNetworkConfigParam
impl PartialEq for NetworkCreateNetworkConfigParam
Source§fn eq(&self, other: &NetworkCreateNetworkConfigParam) -> bool
fn eq(&self, other: &NetworkCreateNetworkConfigParam) -> bool
self
and other
values to be equal, and is used by ==
.