pub struct HookSpec {
pub file_name: &'static str,
pub body: &'static str,
pub hook_event: &'static str,
}Expand description
One hook spec to render and write under ~/.claude/hooks/.
Fields§
§file_name: &'static strFile name on disk (e.g. spool-SessionStart.sh). Always
prefixed with spool- so uninstall can sweep files via prefix
matching without affecting unrelated tools.
body: &'static strRaw template body before substitution.
hook_event: &'static strThe Claude Code hook event this script implements. We use this
to wire the entry under ~/.claude/settings.json hooks.
Auto Trait Implementations§
impl Freeze for HookSpec
impl RefUnwindSafe for HookSpec
impl Send for HookSpec
impl Sync for HookSpec
impl Unpin for HookSpec
impl UnsafeUnpin for HookSpec
impl UnwindSafe for HookSpec
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