Struct podman_api::opts::ExecCreateOptsBuilder
source · pub struct ExecCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for ExecCreateOpts.
Implementations§
source§impl ExecCreateOptsBuilder
impl ExecCreateOptsBuilder
sourcepub fn build(self) -> ExecCreateOpts
pub fn build(self) -> ExecCreateOpts
Finish building ExecCreateOpts.
source§impl ExecCreateOptsBuilder
impl ExecCreateOptsBuilder
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 attach_stdin(self, attach_stdin: bool) -> Self
pub fn attach_stdin(self, attach_stdin: bool) -> Self
Attach to stdin of the exec command
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 command<S>(self, command: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
pub fn command<S>(self, command: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
Command to run, as a string or array of strings.
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- where is one of: a-z, @, ^, [, , or _.
sourcepub fn env<K, V>(self, vars: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: AsRef<str>,
V: AsRef<str>,
pub fn env<K, V>(self, vars: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: AsRef<str>,
V: AsRef<str>,
A list of environment variables to use for the command execution.
sourcepub fn privileged(self, privileged: bool) -> Self
pub fn privileged(self, privileged: bool) -> Self
Runs the exec process with extended privileges
sourcepub fn user(self, user: UserOpt) -> Self
pub fn user(self, user: UserOpt) -> Self
The user, and optionally, group to run the exec process inside the container.
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§
source§impl Clone for ExecCreateOptsBuilder
impl Clone for ExecCreateOptsBuilder
source§fn clone(&self) -> ExecCreateOptsBuilder
fn clone(&self) -> ExecCreateOptsBuilder
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 moresource§impl Debug for ExecCreateOptsBuilder
impl Debug for ExecCreateOptsBuilder
source§impl Default for ExecCreateOptsBuilder
impl Default for ExecCreateOptsBuilder
source§fn default() -> ExecCreateOptsBuilder
fn default() -> ExecCreateOptsBuilder
Returns the “default value” for a type. Read more