Type Alias ExecContainerOptionsBuilder

Source
pub type ExecContainerOptionsBuilder = ExecContainerOptionsBuilder;
👎Deprecated since 0.8.0: Please use docker_sdk::exec::ExecContainerOptionsBuilder. This will be removed in 0.9.0.

Aliased Type§

pub struct ExecContainerOptionsBuilder { /* private fields */ }

Implementations

Source§

impl ExecContainerOptionsBuilder

Source

pub fn cmd(&mut self, cmds: Vec<&str>) -> &mut Self

Command to run, as an array of strings

Source

pub fn env(&mut self, envs: Vec<&str>) -> &mut Self

A list of environment variables in the form “VAR=value”

Source

pub fn attach_stdout(&mut self, stdout: bool) -> &mut Self

Attach to stdout of the exec command

Source

pub fn attach_stderr(&mut self, stderr: bool) -> &mut Self

Attach to stderr of the exec command

Source

pub fn build(&self) -> ExecContainerOptions

Trait Implementations

Source§

impl Default for ExecContainerOptionsBuilder

Source§

fn default() -> ExecContainerOptionsBuilder

Returns the “default value” for a type. Read more