pub enum Decision {
Allow,
Ask,
Deny,
}Expand description
The gating decision for a command.
Variants are ordered by severity: Allow < Ask < Deny.
When evaluating compound commands, the strictest decision across
all segments wins.
Variants§
Allow
Command runs silently without user confirmation.
Ask
Claude Code prompts the user for confirmation before running.
Deny
Command is blocked outright and cannot be executed.
Implementations§
Trait Implementations§
Source§impl Ord for Decision
impl Ord for Decision
Source§impl PartialOrd for Decision
impl PartialOrd for Decision
impl Copy for Decision
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.