pub enum GuardVerdict {
Allow,
Block {
subject: String,
reason: String,
},
}Expand description
The guard’s verdict on one tool call.
Variants§
Allow
The write is inside the touch set; the hook exits 0 and the normal permission flow proceeds.
Block
The write is out of contract; the hook records it and exits 2 with
reason on stderr (fed back to the model by the CLI).
Trait Implementations§
Source§impl Clone for GuardVerdict
impl Clone for GuardVerdict
Source§fn clone(&self) -> GuardVerdict
fn clone(&self) -> GuardVerdict
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 GuardVerdict
impl Debug for GuardVerdict
impl Eq for GuardVerdict
Source§impl PartialEq for GuardVerdict
impl PartialEq for GuardVerdict
impl StructuralPartialEq for GuardVerdict
Auto Trait Implementations§
impl Freeze for GuardVerdict
impl RefUnwindSafe for GuardVerdict
impl Send for GuardVerdict
impl Sync for GuardVerdict
impl Unpin for GuardVerdict
impl UnsafeUnpin for GuardVerdict
impl UnwindSafe for GuardVerdict
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