pub struct CommandSpec {
pub executable: String,
pub args: Vec<String>,
pub cwd: PathBuf,
pub env: BTreeMap<String, String>,
pub timeout: Duration,
pub stdout_limit: usize,
pub stderr_limit: usize,
pub expected_stdout: Option<String>,
pub expected_stdout_exact: Option<String>,
}Expand description
Explicit shell-free process command. Executable and argv are separate OS arguments.
Fields§
§executable: StringExecutable path or tool name.
args: Vec<String>Ordered 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.
expected_stdout_exact: Option<String>Optional exact trimmed-stdout match checked internally and never returned.
Used where containment would be weaker than the invariant: the tool must emit one exact value, not merely contain it among other output.
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Source§impl Debug for CommandSpec
impl Debug for CommandSpec
impl Eq for CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Forget for CommandSpec
impl Freeze for CommandSpec
impl Move for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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.