Struct podman_api::opts::NetworkCreateOptsBuilder
source · [−]pub struct NetworkCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for NetworkCreateOpts.
Implementations
sourceimpl NetworkCreateOptsBuilder
impl NetworkCreateOptsBuilder
sourcepub fn build(self) -> NetworkCreateOpts
pub fn build(self) -> NetworkCreateOpts
Finish building NetworkCreateOpts.
sourceimpl NetworkCreateOptsBuilder
impl NetworkCreateOptsBuilder
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 AsRef<str> + Serialize) -> Self
pub fn driver(self, driver: impl AsRef<str> + 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<I, K, V>(self, ipam_options: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn ipam_options<I, K, V>(self, ipam_options: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + 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<I, K, V>(self, labels: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn labels<I, K, V>(self, labels: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A set of key-value labels that have been applied to the Network.
sourcepub fn network_interface(
self,
network_interface: impl AsRef<str> + Serialize
) -> Self
pub fn network_interface(
self,
network_interface: impl AsRef<str> + Serialize
) -> Self
The network interface name on the host.
Trait Implementations
sourceimpl Clone for NetworkCreateOptsBuilder
impl Clone for NetworkCreateOptsBuilder
sourcefn clone(&self) -> NetworkCreateOptsBuilder
fn clone(&self) -> NetworkCreateOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NetworkCreateOptsBuilder
impl Debug for NetworkCreateOptsBuilder
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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