pub struct InterpreterCommandSpec {
pub executable: String,
pub args: Vec<OsString>,
pub cwd: PathBuf,
pub env: BTreeMap<String, String>,
pub timeout: Duration,
pub stdout_limit: usize,
pub stderr_limit: usize,
pub expected_stdout: Option<String>,
}Expand description
Explicit shell-free interpreter command for a bounded consumer-validator run.
The argument vector is OS-native so a validated absolute path reaches the interpreter byte-exact, and the executable stays inside the finite interpreter allowlist the shared runner enforces.
Fields§
§executable: StringInterpreter executable name.
args: Vec<OsString>Ordered OS-native arguments.
cwd: PathBufWorking directory.
env: BTreeMap<String, String>Explicit environment overrides only.
timeout: DurationMaximum wall time.
stdout_limit: usizeMaximum retained stdout bytes.
stderr_limit: usizeMaximum retained stderr bytes.
expected_stdout: Option<String>Optional tool version substring checked internally and never returned.
Trait Implementations§
Source§impl Clone for InterpreterCommandSpec
impl Clone for InterpreterCommandSpec
Source§impl Debug for InterpreterCommandSpec
impl Debug for InterpreterCommandSpec
impl Eq for InterpreterCommandSpec
Source§impl PartialEq for InterpreterCommandSpec
impl PartialEq for InterpreterCommandSpec
impl StructuralPartialEq for InterpreterCommandSpec
Auto Trait Implementations§
impl Forget for InterpreterCommandSpec
impl Freeze for InterpreterCommandSpec
impl Move for InterpreterCommandSpec
impl RefUnwindSafe for InterpreterCommandSpec
impl Send for InterpreterCommandSpec
impl Sync for InterpreterCommandSpec
impl Unpin for InterpreterCommandSpec
impl UnsafeUnpin for InterpreterCommandSpec
impl UnwindSafe for InterpreterCommandSpec
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.