Struct docker_api::opts::NetworkCreateOpts
source · pub struct NetworkCreateOpts { /* private fields */ }
Expand description
Interface for creating new docker network
Implementations§
source§impl NetworkCreateOpts
impl NetworkCreateOpts
sourcepub fn builder<N>(name: N) -> NetworkCreateOptsBuilderwhere
N: AsRef<str>,
pub fn builder<N>(name: N) -> NetworkCreateOptsBuilderwhere N: AsRef<str>,
Return a new instance of a opts-builder for creating a network.
sourcepub fn serialize_vec(&self) -> Result<Vec<u8>>
pub fn serialize_vec(&self) -> Result<Vec<u8>>
Serializes the options as a JSON bytes.
Trait Implementations§
source§impl Clone for NetworkCreateOpts
impl Clone for NetworkCreateOpts
source§fn clone(&self) -> NetworkCreateOpts
fn clone(&self) -> NetworkCreateOpts
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 more