pub struct MatcherGroup {
pub matcher: String,
pub hooks: Vec<HookCommand>,
}
Expand description
A matcher group containing multiple hooks with the same regex pattern.
In Claude Code’s settings.local.json, hooks are organized into matcher groups where multiple hook commands can share the same regex pattern for tool matching.
Fields§
§matcher: String
Regex pattern that determines which tools this group applies to
hooks: Vec<HookCommand>
List of hook commands to execute when the matcher pattern matches
Trait Implementations§
Source§impl Clone for MatcherGroup
impl Clone for MatcherGroup
Source§fn clone(&self) -> MatcherGroup
fn clone(&self) -> MatcherGroup
Returns a duplicate of the value. Read more
1.0.0 · 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 MatcherGroup
impl Debug for MatcherGroup
Source§impl<'de> Deserialize<'de> for MatcherGroup
impl<'de> Deserialize<'de> for MatcherGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MatcherGroup
impl RefUnwindSafe for MatcherGroup
impl Send for MatcherGroup
impl Sync for MatcherGroup
impl Unpin for MatcherGroup
impl UnwindSafe for MatcherGroup
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