Struct bollard::exec::CreateExecOptions [−][src]
pub struct CreateExecOptions<T> where
T: Into<String> + Serialize, {
pub attach_stdin: Option<bool>,
pub attach_stdout: Option<bool>,
pub attach_stderr: Option<bool>,
pub tty: Option<bool>,
pub detach_keys: Option<T>,
pub env: Option<Vec<T>>,
pub cmd: Option<Vec<T>>,
pub privileged: Option<bool>,
pub user: Option<T>,
pub working_dir: Option<T>,
}
Expand description
Exec configuration used in the Create Exec API
Fields
attach_stdin: Option<bool>
Attach to stdin
of the exec command.
attach_stdout: Option<bool>
Attach to stdout of the exec command.
attach_stderr: Option<bool>
Attach to stderr of the exec command.
tty: Option<bool>
Allocate a pseudo-TTY.
detach_keys: Option<T>
Override the key sequence for detaching a container. Format is a single character [a-Z]
or ctrl-<value>
where <value>
is one of: a-z
, @
, ^
, [
, ,
or _
.
env: Option<Vec<T>>
A list of environment variables in the form ["VAR=value", ...].
cmd: Option<Vec<T>>
Command to run, as a string or array of strings.
privileged: Option<bool>
Runs the exec process with extended privileges.
user: Option<T>
The user, and optionally, group to run the exec process inside the container. Format is one
of: user
, user:group
, uid
, or uid:gid
.
working_dir: Option<T>
The working directory for the exec process inside the container.
Trait Implementations
Returns the “default value” for a type. Read more
impl<'de, T> Deserialize<'de> for CreateExecOptions<T> where
T: Into<String> + Serialize,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CreateExecOptions<T> where
T: Into<String> + Serialize,
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for CreateExecOptions<T> where
T: RefUnwindSafe,
impl<T> Send for CreateExecOptions<T> where
T: Send,
impl<T> Sync for CreateExecOptions<T> where
T: Sync,
impl<T> Unpin for CreateExecOptions<T> where
T: Unpin,
impl<T> UnwindSafe for CreateExecOptions<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more