pub struct CreateExecRequest {
pub cmd: Vec<String>,
pub user: String,
pub attach_stderr: bool,
pub attach_stdin: bool,
pub attach_stdout: bool,
}
Expand description
See https://docs.docker.com/engine/api/v1.41/#tag/Exec/operation/ContainerExec
Fields§
§cmd: Vec<String>
§user: String
§attach_stderr: bool
§attach_stdin: bool
§attach_stdout: bool
Implementations§
Source§impl CreateExecRequest
impl CreateExecRequest
Sourcepub fn cmd<V: ToString>(self, v: Vec<V>) -> Self
pub fn cmd<V: ToString>(self, v: Vec<V>) -> Self
Set the command to execute, with its arguments.
§Example
use passivized_docker_engine_client::requests::CreateExecRequest;
let config = CreateExecRequest::default()
.cmd(Vec::from(["echo", "Hello,", "world."]))
.attach_stdout(true);
pub fn user<V>(self, v: V) -> Self
pub fn attach_stdin(self, v: bool) -> Self
pub fn attach_stdout(self, v: bool) -> Self
pub fn attach_stderr(self, v: bool) -> Self
Trait Implementations§
Source§impl Clone for CreateExecRequest
impl Clone for CreateExecRequest
Source§fn clone(&self) -> CreateExecRequest
fn clone(&self) -> CreateExecRequest
Returns a duplicate 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 Debug for CreateExecRequest
impl Debug for CreateExecRequest
Source§impl Default for CreateExecRequest
impl Default for CreateExecRequest
Source§fn default() -> CreateExecRequest
fn default() -> CreateExecRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateExecRequest
impl RefUnwindSafe for CreateExecRequest
impl Send for CreateExecRequest
impl Sync for CreateExecRequest
impl Unpin for CreateExecRequest
impl UnwindSafe for CreateExecRequest
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