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)>) -> Self
pub fn options<K, V>(self, options: impl IntoIterator<Item = (K, V)>) -> Self
Network specific options to be used by the drivers.
Sourcepub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Self
pub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Self
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
Auto Trait Implementations§
impl Freeze for NetworkCreateOptsBuilder
impl RefUnwindSafe for NetworkCreateOptsBuilder
impl Send for NetworkCreateOptsBuilder
impl Sync for NetworkCreateOptsBuilder
impl Unpin for NetworkCreateOptsBuilder
impl UnwindSafe for NetworkCreateOptsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more