pub struct ContainerExecRequest {
pub command: Vec<String>,
pub user: Option<String>,
pub working_dir: Option<String>,
pub env: Vec<String>,
}Expand description
Exec request for running a command in a container
Fields§
§command: Vec<String>Command and arguments to execute
user: Option<String>Optional user[:group] to run the command as (Docker --user). A NAME
(e.g. git) is resolved against the container’s /etc/passwd by the
runtime; numeric uid / uid:gid are used directly. None keeps the
container’s configured user (root by default).
working_dir: Option<String>Optional working directory inside the container (Docker -w/--workdir).
None keeps the container’s default workdir.
env: Vec<String>Extra environment variables in KEY=VALUE form (Docker -e/--env),
merged on top of the container’s env (later entries win).
Trait Implementations§
Source§impl Clone for ContainerExecRequest
impl Clone for ContainerExecRequest
Source§fn clone(&self) -> ContainerExecRequest
fn clone(&self) -> ContainerExecRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ContainerExecRequest
impl ComposeSchema for ContainerExecRequest
Source§impl Debug for ContainerExecRequest
impl Debug for ContainerExecRequest
Source§impl Default for ContainerExecRequest
impl Default for ContainerExecRequest
Source§fn default() -> ContainerExecRequest
fn default() -> ContainerExecRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerExecRequest
impl<'de> Deserialize<'de> for ContainerExecRequest
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 Serialize for ContainerExecRequest
impl Serialize for ContainerExecRequest
Auto Trait Implementations§
impl Freeze for ContainerExecRequest
impl RefUnwindSafe for ContainerExecRequest
impl Send for ContainerExecRequest
impl Sync for ContainerExecRequest
impl Unpin for ContainerExecRequest
impl UnsafeUnpin for ContainerExecRequest
impl UnwindSafe for ContainerExecRequest
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