Struct docker_api::opts::NetworkCreateOptsBuilder
source · pub struct NetworkCreateOptsBuilder { /* private fields */ }
Implementations§
source§impl NetworkCreateOptsBuilder
impl NetworkCreateOptsBuilder
sourcepub fn check_duplicate(self, check_duplicate: bool) -> Self
pub fn check_duplicate(self, check_duplicate: bool) -> Self
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.
sourcepub fn attachable(self, attachable: bool) -> Self
pub fn attachable(self, attachable: bool) -> Self
Globally scoped network is manually attachable by regular containers from workers in swarm mode.
sourcepub fn ingress(self, ingress: bool) -> Self
pub fn ingress(self, ingress: bool) -> Self
Ingress network is the network which provides the routing-mesh in swarm mode.
sourcepub fn enable_ipv6(self, enable_ipv6: bool) -> Self
pub fn enable_ipv6(self, enable_ipv6: bool) -> Self
Enable IPv6 on the network.
sourcepub fn options<K, V>(self, options: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
pub fn options<K, V>(self, options: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
Network specific options to be used by the drivers.
sourcepub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
pub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
User-defined key/value metadata.
pub fn build(&self) -> NetworkCreateOpts
Trait Implementations§
source§impl Default for NetworkCreateOptsBuilder
impl Default for NetworkCreateOptsBuilder
source§fn default() -> NetworkCreateOptsBuilder
fn default() -> NetworkCreateOptsBuilder
Returns the “default value” for a type. Read more