Struct conductor::exec::Options
[−]
[src]
pub struct Options { pub detached: bool, pub privileged: bool, pub user: Option<String>, pub allocate_tty: bool, // some fields omitted }
Command-line flags which can be passed to docker-compose exec
.
Fields
detached: bool
Should we execute this command in the background?
privileged: bool
Should we run this command with elevated privileges?
user: Option<String>
An optional user as whom we should run the command.
TODO LOW: Is this technically "user[:group]"? If so, we need
support for that type in compose_yml
and use it here.
allocate_tty: bool
Should we allocate a TTY when executing the command?
Defaults to true for docker-compose
.
Trait Implementations
impl Debug for Options
[src]
impl Clone for Options
[src]
fn clone(&self) -> Options
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl ToArgs for Options
[src]
fn to_args(&self) -> Vec<OsString>
Convert to arguments suitable for std::process::Command
or our
CommandBuilder
.