pub struct ExecSpec {
pub image: Option<String>,
pub command: Vec<String>,
pub workdir: Option<String>,
pub env: Vec<(String, String)>,
pub timeout_ms: u64,
}Expand description
Specification of a command to execute inside a sandbox.
Fields§
§image: Option<String>Container/VM image to run (provider-specific default if None).
command: Vec<String>The command and its arguments.
workdir: Option<String>Working directory inside the sandbox.
env: Vec<(String, String)>Environment variables.
timeout_ms: u64Wall-clock timeout in milliseconds.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExecSpec
impl<'de> Deserialize<'de> for ExecSpec
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
Auto Trait Implementations§
impl Freeze for ExecSpec
impl RefUnwindSafe for ExecSpec
impl Send for ExecSpec
impl Sync for ExecSpec
impl Unpin for ExecSpec
impl UnsafeUnpin for ExecSpec
impl UnwindSafe for ExecSpec
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