Struct docker_api::opts::ExecContainerOptsBuilder
source · [−]pub struct ExecContainerOptsBuilder { /* private fields */ }Expand description
A builder struct for ExecContainerOpts.
Implementations
sourceimpl ExecContainerOptsBuilder
impl ExecContainerOptsBuilder
sourcepub fn build(self) -> ExecContainerOpts
pub fn build(self) -> ExecContainerOpts
Finish building ExecContainerOpts.
sourceimpl ExecContainerOptsBuilder
impl ExecContainerOptsBuilder
sourcepub fn cmd<S>(self, cmd: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
pub fn cmd<S>(self, cmd: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
Command to run, as an array of strings.
sourcepub fn env<S>(self, env: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
pub fn env<S>(self, env: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
A list of environment variables in the form ‘VAR=value’.
sourcepub fn attach_stdout(self, attach_stdout: bool) -> Self
pub fn attach_stdout(self, attach_stdout: bool) -> Self
Attach to stdout of the exec command.
sourcepub fn attach_stderr(self, attach_stderr: bool) -> Self
pub fn attach_stderr(self, attach_stderr: bool) -> Self
Attach to stderr of the exec command.
sourcepub fn detach_keys(self, detach_keys: impl Serialize) -> Self
pub fn detach_keys(self, detach_keys: impl Serialize) -> Self
Override the key sequence for detaching a container. Format is a single
character [a-Z] or ctrl-
sourcepub fn privileged(self, privileged: bool) -> Self
pub fn privileged(self, privileged: bool) -> Self
Runs the exec process with extended privileges. (Default: false)
sourcepub fn user(self, user: impl Serialize) -> Self
pub fn user(self, user: impl Serialize) -> Self
The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.
sourcepub fn working_dir(self, working_dir: impl Serialize) -> Self
pub fn working_dir(self, working_dir: impl Serialize) -> Self
The working directory for the exec process inside the container.
Trait Implementations
sourceimpl Clone for ExecContainerOptsBuilder
impl Clone for ExecContainerOptsBuilder
sourcefn clone(&self) -> ExecContainerOptsBuilder
fn clone(&self) -> ExecContainerOptsBuilder
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 moresourceimpl Debug for ExecContainerOptsBuilder
impl Debug for ExecContainerOptsBuilder
sourceimpl Default for ExecContainerOptsBuilder
impl Default for ExecContainerOptsBuilder
sourcefn default() -> ExecContainerOptsBuilder
fn default() -> ExecContainerOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExecContainerOptsBuilder
impl Send for ExecContainerOptsBuilder
impl Sync for ExecContainerOptsBuilder
impl Unpin for ExecContainerOptsBuilder
impl UnwindSafe for ExecContainerOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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