pub enum ToolDecision {
Allow,
Block(String),
RequiresConfirmation(String),
RequiresPin(String),
}Expand description
Decision returned by pre-tool hooks
Variants§
Allow
Allow the tool to execute
Block(String)
Block the tool execution with a message
RequiresConfirmation(String)
Tool requires user confirmation
RequiresPin(String)
Tool requires PIN verification
Trait Implementations§
Source§impl Clone for ToolDecision
impl Clone for ToolDecision
Source§fn clone(&self) -> ToolDecision
fn clone(&self) -> ToolDecision
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 ToolDecision
impl RefUnwindSafe for ToolDecision
impl Send for ToolDecision
impl Sync for ToolDecision
impl Unpin for ToolDecision
impl UnwindSafe for ToolDecision
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