pub struct HookMatcher {
pub tool: Option<String>,
pub tool_glob: Option<String>,
pub safety: Vec<SafetyClass>,
}Expand description
Event matcher. Empty fields match all triggers under that event; see the hooks trust model.
Fields§
§tool: Option<String>Exact tool name match (only *ToolUse* events).
tool_glob: Option<String>Tool name glob match (only *ToolUse* events).
safety: Vec<SafetyClass>SafetyClass filter (only for PreToolUse); any match triggers. Empty vec = no
filtering.
Trait Implementations§
Source§impl Clone for HookMatcher
impl Clone for HookMatcher
Source§fn clone(&self) -> HookMatcher
fn clone(&self) -> HookMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookMatcher
impl Debug for HookMatcher
Source§impl Default for HookMatcher
impl Default for HookMatcher
Source§fn default() -> HookMatcher
fn default() -> HookMatcher
Returns the “default value” for a type. Read more
impl Eq for HookMatcher
Source§impl Hash for HookMatcher
impl Hash for HookMatcher
Source§impl PartialEq for HookMatcher
impl PartialEq for HookMatcher
Source§fn eq(&self, other: &HookMatcher) -> bool
fn eq(&self, other: &HookMatcher) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HookMatcher
Auto Trait Implementations§
impl Freeze for HookMatcher
impl RefUnwindSafe for HookMatcher
impl Send for HookMatcher
impl Sync for HookMatcher
impl Unpin for HookMatcher
impl UnsafeUnpin for HookMatcher
impl UnwindSafe for HookMatcher
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§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.