Struct docker_api::opts::ContainerConnectionOpts
source · pub struct ContainerConnectionOpts { /* private fields */ }
Expand description
Interface for connecting a container to a network.
Implementations§
source§impl ContainerConnectionOpts
impl ContainerConnectionOpts
sourcepub fn serialize_vec(&self) -> Result<Vec<u8>>
pub fn serialize_vec(&self) -> Result<Vec<u8>>
Serializes the options as a JSON bytes.
sourcepub fn builder<I>(container_id: I) -> ContainerConnectionOptsBuilderwhere
I: AsRef<str>,
pub fn builder<I>(container_id: I) -> ContainerConnectionOptsBuilderwhere I: AsRef<str>,
Return a new instance of a builder for connecting a container to a network.