Struct docker_api::opts::NetworkCreateOptsBuilder
source · [−]pub struct NetworkCreateOptsBuilder { /* private fields */ }
Implementations
sourceimpl 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 where
K: Serialize + Eq + Hash,
V: Serialize,
pub fn options<K, V>(self, options: impl IntoIterator<Item = (K, V)>) -> Self where
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)>) -> Self where
K: Serialize + Eq + Hash,
V: Serialize,
pub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Self where
K: Serialize + Eq + Hash,
V: Serialize,
User-defined key/value metadata.
pub fn build(&self) -> NetworkCreateOpts
Trait Implementations
sourceimpl Default for NetworkCreateOptsBuilder
impl Default for NetworkCreateOptsBuilder
sourcefn default() -> NetworkCreateOptsBuilder
fn default() -> NetworkCreateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NetworkCreateOptsBuilder
impl Send for NetworkCreateOptsBuilder
impl Sync for NetworkCreateOptsBuilder
impl Unpin for NetworkCreateOptsBuilder
impl UnwindSafe for NetworkCreateOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more