pub enum PreToolDecision {
Continue,
Deny {
message: String,
},
Rewrite {
input: Value,
},
}Expand description
A PreToolUse decision (wrap-style intercept). A Rewrite re-enters the
normal permission gate with the new input — a hook cannot launder a call
past the y/N ask (SECURITY.md §M5 routing rows).
Variants§
Trait Implementations§
Source§impl Clone for PreToolDecision
impl Clone for PreToolDecision
Source§fn clone(&self) -> PreToolDecision
fn clone(&self) -> PreToolDecision
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 PreToolDecision
impl Debug for PreToolDecision
Source§impl PartialEq for PreToolDecision
impl PartialEq for PreToolDecision
impl StructuralPartialEq for PreToolDecision
Auto Trait Implementations§
impl Freeze for PreToolDecision
impl RefUnwindSafe for PreToolDecision
impl Send for PreToolDecision
impl Sync for PreToolDecision
impl Unpin for PreToolDecision
impl UnsafeUnpin for PreToolDecision
impl UnwindSafe for PreToolDecision
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