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>, }

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

impl<T: Clone> Clone for CreateExecOptions<T> where
    T: Into<String> + Serialize
[src]

impl<T: Debug> Debug for CreateExecOptions<T> where
    T: Into<String> + Serialize
[src]

impl<T: Default> Default for CreateExecOptions<T> where
    T: Into<String> + Serialize
[src]

impl<'de, T> Deserialize<'de> for CreateExecOptions<T> where
    T: Into<String> + Serialize,
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for CreateExecOptions<T> where
    T: Into<String> + Serialize,
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for CreateExecOptions<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for CreateExecOptions<T> where
    T: Send
[src]

impl<T> Sync for CreateExecOptions<T> where
    T: Sync
[src]

impl<T> Unpin for CreateExecOptions<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for CreateExecOptions<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.