Struct bollard::service::ExecConfig [−][src]
pub struct ExecConfig {
pub attach_stdin: Option<bool>,
pub attach_stdout: Option<bool>,
pub attach_stderr: Option<bool>,
pub detach_keys: Option<String>,
pub tty: Option<bool>,
pub env: Option<Vec<String, Global>>,
pub cmd: Option<Vec<String, Global>>,
pub privileged: Option<bool>,
pub user: Option<String>,
pub working_dir: Option<String>,
}
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.
detach_keys: Option<String>
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 _
.
tty: Option<bool>
Allocate a pseudo-TTY.
env: Option<Vec<String, Global>>
A list of environment variables in the form [\"VAR=value\", ...]
.
cmd: Option<Vec<String, Global>>
Command to run, as a string or array of strings.
privileged: Option<bool>
Runs the exec process with extended privileges.
user: Option<String>
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<String>
The working directory for the exec process inside the container.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExecConfig
impl Send for ExecConfig
impl Sync for ExecConfig
impl Unpin for ExecConfig
impl UnwindSafe for ExecConfig
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