pub struct Hook {
pub tool: String,
pub path_contains: String,
pub exclude: Vec<String>,
pub message: String,
}Expand description
A single completion hook: when tool + path match → inject message.
Fields§
§tool: StringTool name to match (“write”, “read”, “delete”, “*” for any)
path_contains: StringPath substring to match (lowercase, e.g. “distill/cards/”)
exclude: Vec<String>Path substrings to exclude from matching (e.g. “template”)
message: StringMessage to inject after tool completes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnsafeUnpin for Hook
impl UnwindSafe for Hook
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