pub struct HookContext {
pub tool_name: Option<String>,
pub command: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
Context passed to hooks when they fire.
Fields§
§tool_name: Option<String>The tool name (relevant for PreToolUse / PostToolUse).
command: Option<String>The command being executed.
metadata: HashMap<String, String>Arbitrary key-value metadata.
Trait Implementations§
Source§impl Clone for HookContext
impl Clone for HookContext
Source§impl Debug for HookContext
impl Debug for HookContext
Auto Trait Implementations§
impl Freeze for HookContext
impl RefUnwindSafe for HookContext
impl Send for HookContext
impl Sync for HookContext
impl Unpin for HookContext
impl UnsafeUnpin for HookContext
impl UnwindSafe for HookContext
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