Struct podman_api::opts::NetworkCreateOptsBuilder
source · 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)>
) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
pub fn ipam_options<K, V>(
self,
ipam_options: impl IntoIterator<Item = (K, V)>
) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
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)>) -> 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,
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)>) -> 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,
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