pub struct HookDefinition {
pub command: String,
pub async: Option<bool>,
pub timeout: Option<u32>,
pub cwd: Option<String>,
pub env: Option<HashMap<String, String>>,
pub file_path: Option<PathBuf>,
}Expand description
Individual hook definition
Fields§
§command: StringCommand to execute
async: Option<bool>Run asynchronously
timeout: Option<u32>Timeout in seconds
cwd: Option<String>Working directory
env: Option<HashMap<String, String>>Environment variables
file_path: Option<PathBuf>Source file path (not from JSON, populated during scanning)
Trait Implementations§
Source§impl Clone for HookDefinition
impl Clone for HookDefinition
Source§fn clone(&self) -> HookDefinition
fn clone(&self) -> HookDefinition
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 HookDefinition
impl Debug for HookDefinition
Source§impl<'de> Deserialize<'de> for HookDefinition
impl<'de> Deserialize<'de> for HookDefinition
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 HookDefinition
impl RefUnwindSafe for HookDefinition
impl Send for HookDefinition
impl Sync for HookDefinition
impl Unpin for HookDefinition
impl UnsafeUnpin for HookDefinition
impl UnwindSafe for HookDefinition
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