pub struct Event {
pub name: &'static str,
pub matcher: Option<&'static str>,
pub default_timeout_ms: u32,
}Expand description
A hook event of one target and the input field its matcher tests.
Fields§
§name: &'static str§matcher: Option<&'static str>The input field the matcher tests (tool_name, source, …). None means no field is
recorded for this event; only the events a generated adapter renders need one.
default_timeout_ms: u32Claude Code’s default timeout for a command handler on this event, in
milliseconds. A generated TypeScript hook applies the Claude row’s value so it times
out as it would on Claude; the other targets’ rows carry the common default unread.
Implementations§
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.