pub enum CompiledToolMatcher {
Universal,
ToolOnly(PatternMatcher),
ToolAndFunction(PatternMatcher, PatternMatcher),
}Expand description
Pre-compiled tool:function matcher derived from policy ID.
Variants§
Universal
Matches all tools and functions (“*”)
ToolOnly(PatternMatcher)
Matches tool only (no colon in policy ID)
ToolAndFunction(PatternMatcher, PatternMatcher)
Matches tool:function with independent matchers
Trait Implementations§
Source§impl Clone for CompiledToolMatcher
impl Clone for CompiledToolMatcher
Source§fn clone(&self) -> CompiledToolMatcher
fn clone(&self) -> CompiledToolMatcher
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 moreAuto Trait Implementations§
impl Freeze for CompiledToolMatcher
impl RefUnwindSafe for CompiledToolMatcher
impl Send for CompiledToolMatcher
impl Sync for CompiledToolMatcher
impl Unpin for CompiledToolMatcher
impl UnsafeUnpin for CompiledToolMatcher
impl UnwindSafe for CompiledToolMatcher
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