pub struct HookHandler {
pub name: String,
pub event: HookEvent,
pub priority: i32,
pub command: Option<String>,
pub matcher: Option<String>,
pub enabled: bool,
}Expand description
A registered hook handler.
Fields§
§name: String§event: HookEvent§priority: i32Lower priority runs first. Default: 100.
command: Option<String>Optional shell command to execute (future: subprocess dispatch).
matcher: Option<String>Optional tool name pattern for filtering (simple glob: “bash”, “mcp__*”).
enabled: boolTrait Implementations§
Source§impl Clone for HookHandler
impl Clone for HookHandler
Source§fn clone(&self) -> HookHandler
fn clone(&self) -> HookHandler
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 moreAuto Trait Implementations§
impl Freeze for HookHandler
impl RefUnwindSafe for HookHandler
impl Send for HookHandler
impl Sync for HookHandler
impl Unpin for HookHandler
impl UnsafeUnpin for HookHandler
impl UnwindSafe for HookHandler
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