pub enum ToolMatcher {
Exact(String),
Glob(String),
Regex(Regex),
}Expand description
How to match the tool name portion of a call.
Variants§
Exact(String)
Exact string equality.
Glob(String)
Glob pattern (supports *, ?, [...]).
Regex(Regex)
Compiled regex.
Trait Implementations§
Source§impl Clone for ToolMatcher
impl Clone for ToolMatcher
Source§fn clone(&self) -> ToolMatcher
fn clone(&self) -> ToolMatcher
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 ToolMatcher
impl Debug for ToolMatcher
Source§impl Display for ToolMatcher
impl Display for ToolMatcher
impl Eq for ToolMatcher
Source§impl PartialEq for ToolMatcher
impl PartialEq for ToolMatcher
Auto Trait Implementations§
impl Freeze for ToolMatcher
impl RefUnwindSafe for ToolMatcher
impl Send for ToolMatcher
impl Sync for ToolMatcher
impl Unpin for ToolMatcher
impl UnsafeUnpin for ToolMatcher
impl UnwindSafe for ToolMatcher
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