pub struct HookContext {
pub kind: HookKind,
pub tool_name: Option<String>,
pub session_id: String,
pub tool_use_id: Option<String>,
}Expand description
Context carried alongside every hook invocation.
Fields§
§kind: HookKindHook point being invoked.
tool_name: Option<String>Tool name when applicable (PreToolUse / PostToolUse).
session_id: StringSession id.
tool_use_id: Option<String>Tool-use id when the hook fired in a tool-use context
(PreToolUse, PostToolUse). None for other hook kinds.
Trait Implementations§
Source§impl Clone for HookContext
impl Clone 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