pub struct HookConfig {
pub events: Vec<HookEvent>,
pub matcher: Option<String>,
pub hook_type: String,
pub command: String,
pub timeout: Option<u32>,
pub description: Option<String>,
}
Expand description
Hook configuration as stored in JSON files
Fields§
§events: Vec<HookEvent>
Events this hook should trigger on
matcher: Option<String>
Regex matcher pattern for tools or commands (optional, only needed for tool-triggered events)
hook_type: String
Type of hook (usually “command”)
command: String
Command to execute
timeout: Option<u32>
Timeout in milliseconds
description: Option<String>
Description of what this hook does
Trait Implementations§
Source§impl Clone for HookConfig
impl Clone for HookConfig
Source§fn clone(&self) -> HookConfig
fn clone(&self) -> HookConfig
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 HookConfig
impl Debug for HookConfig
Source§impl<'de> Deserialize<'de> for HookConfig
impl<'de> Deserialize<'de> for HookConfig
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 HookConfig
impl RefUnwindSafe for HookConfig
impl Send for HookConfig
impl Sync for HookConfig
impl Unpin for HookConfig
impl UnwindSafe for HookConfig
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