pub struct NetworkCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for NetworkCreateOpts.
Implementations§
Source§impl NetworkCreateOptsBuilder
impl NetworkCreateOptsBuilder
Sourcepub fn build(self) -> NetworkCreateOpts
pub fn build(self) -> NetworkCreateOpts
Finish building NetworkCreateOpts.
Source§impl NetworkCreateOptsBuilder
impl NetworkCreateOptsBuilder
Sourcepub fn created(self, created: impl Serialize) -> Self
pub fn created(self, created: impl Serialize) -> Self
The timestamp when this network was created. Example: "2019-08-24T14:15:22Z"
Sourcepub fn dns_enabled(self, dns_enabled: bool) -> Self
pub fn dns_enabled(self, dns_enabled: bool) -> Self
Whether name resolution is active for container on this Network.
Sourcepub fn driver(self, driver: impl Serialize) -> Self
pub fn driver(self, driver: impl Serialize) -> Self
Driver for this Network, e.g. bridge, macvlan…
Sourcepub fn internal(self, internal: bool) -> Self
pub fn internal(self, internal: bool) -> Self
Whether the Network should not have external routes to public or other Networks.
Sourcepub fn ipam_options<K, V>(
self,
ipam_options: impl IntoIterator<Item = (K, V)>,
) -> Self
pub fn ipam_options<K, V>( self, ipam_options: impl IntoIterator<Item = (K, V)>, ) -> Self
Contains options used for the ip assignment.
Sourcepub fn ipv6_enabled(self, ipv6_enabled: bool) -> Self
pub fn ipv6_enabled(self, ipv6_enabled: bool) -> Self
If set to true an ipv6 subnet should be created for this net.
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
A set of key-value labels that have been applied to the Network.
Sourcepub fn network_interface(self, network_interface: impl Serialize) -> Self
pub fn network_interface(self, network_interface: impl Serialize) -> Self
The network interface name on the host.
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
A set of key-value options that have been applied to the Network.
Sourcepub fn subnets(self, subnets: impl IntoIterator<Item = Subnet>) -> Self
pub fn subnets(self, subnets: impl IntoIterator<Item = Subnet>) -> Self
Subnets to use for this network.
Trait Implementations§
Source§impl Clone for NetworkCreateOptsBuilder
impl Clone for NetworkCreateOptsBuilder
Source§fn clone(&self) -> NetworkCreateOptsBuilder
fn clone(&self) -> NetworkCreateOptsBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NetworkCreateOptsBuilder
impl Debug for NetworkCreateOptsBuilder
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