pub struct MatcherGroup {
pub matcher: Option<String>,
pub handlers: Vec<Handler>,
pub extra: IndexMap<String, OrderedValue>,
}Expand description
One matcher group: a matcher and the handlers it guards.
Fields§
§matcher: Option<String>§handlers: Vec<Handler>§extra: IndexMap<String, OrderedValue>Implementations§
Source§impl MatcherGroup
impl MatcherGroup
Sourcepub fn to_claude(&self) -> OrderedValue
pub fn to_claude(&self) -> OrderedValue
This group as Claude’s JSON entry.
Trait Implementations§
Source§impl Clone for MatcherGroup
impl Clone for MatcherGroup
Source§impl Debug for MatcherGroup
impl Debug for MatcherGroup
Source§impl PartialEq for MatcherGroup
impl PartialEq for MatcherGroup
impl StructuralPartialEq for MatcherGroup
Auto Trait Implementations§
impl Forget for MatcherGroup
impl Freeze for MatcherGroup
impl RefUnwindSafe for MatcherGroup
impl Send for MatcherGroup
impl Sync for MatcherGroup
impl Unpin for MatcherGroup
impl UnsafeUnpin 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