Struct bollard::exec::CreateExecOptions
source · pub struct CreateExecOptions<T>{
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§
source§impl<T> Clone for CreateExecOptions<T>
impl<T> Clone for CreateExecOptions<T>
source§fn clone(&self) -> CreateExecOptions<T>
fn clone(&self) -> CreateExecOptions<T>
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<T> Debug for CreateExecOptions<T>
impl<T> Debug for CreateExecOptions<T>
source§impl<T> Default for CreateExecOptions<T>
impl<T> Default for CreateExecOptions<T>
source§fn default() -> CreateExecOptions<T>
fn default() -> CreateExecOptions<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for CreateExecOptions<T>
impl<'de, T> Deserialize<'de> for CreateExecOptions<T>
source§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
source§impl<T> PartialEq for CreateExecOptions<T>
impl<T> PartialEq for CreateExecOptions<T>
source§impl<T> Serialize for CreateExecOptions<T>
impl<T> Serialize for CreateExecOptions<T>
impl<T> StructuralPartialEq for CreateExecOptions<T>
Auto Trait Implementations§
impl<T> Freeze for CreateExecOptions<T>where
T: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)