pub struct PreRunHook {
pub command: String,
pub env: BTreeMap<String, String>,
pub cwd: Option<String>,
}Expand description
Configuration for a pre-run hook command.
Fields§
§command: StringShell command string to execute before each run and validation.
env: BTreeMap<String, String>Environment variables to add or override for the hook process.
cwd: Option<String>Optional working directory for the hook process.
Implementations§
Trait Implementations§
Source§impl Clone for PreRunHook
impl Clone for PreRunHook
Source§fn clone(&self) -> PreRunHook
fn clone(&self) -> PreRunHook
Returns a duplicate of the value. Read more
1.0.0 · 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 PreRunHook
impl Debug for PreRunHook
Source§impl PartialEq for PreRunHook
impl PartialEq for PreRunHook
impl Eq for PreRunHook
impl StructuralPartialEq for PreRunHook
Auto Trait Implementations§
impl Freeze for PreRunHook
impl RefUnwindSafe for PreRunHook
impl Send for PreRunHook
impl Sync for PreRunHook
impl Unpin for PreRunHook
impl UnsafeUnpin for PreRunHook
impl UnwindSafe for PreRunHook
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.