pub struct CommandSpec {
pub program: String,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub timeout_seconds: Option<u64>,
pub snapshot_hash: String,
}Expand description
Explicit argv loaded from a versioned JSON file.
Fields§
§program: StringExecutable name or path. It is never interpreted by a shell.
args: Vec<String>Exact argv applied in all three worktrees.
env: BTreeMap<String, String>Environment variables declared by the command file. The runs see
these plus the pass-through list in effective_environment, and
nothing else.
timeout_seconds: Option<u64>Per-run wall-clock bound in seconds, or None to wait forever.
Additive: an absent field decodes as before, and because the field
lives in the hashed file bytes, declaring one is a command change.
snapshot_hash: StringBLAKE3 content address of the command file bytes.
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Source§fn clone(&self) -> CommandSpec
fn clone(&self) -> CommandSpec
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 Debug for CommandSpec
impl Debug for CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
Source§fn eq(&self, other: &CommandSpec) -> bool
fn eq(&self, other: &CommandSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Freeze 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