pub struct MatcherGroup {
pub matcher: Option<String>,
pub hooks: Vec<HookHandler>,
}Expand description
Matcher group in Claude Code hooks structure
Each event has an array of matcher groups. Each group has an optional
matcher regex and a hooks array of handlers.
Fields§
§matcher: Option<String>Optional regex matcher to filter when hooks run
hooks: Vec<HookHandler>Array of hook handlers
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
Source§impl PartialEq for MatcherGroup
impl PartialEq for MatcherGroup
Source§impl Serialize for MatcherGroup
impl Serialize for MatcherGroup
impl Eq for MatcherGroup
impl StructuralPartialEq for MatcherGroup
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