pub enum ApprovalMode {
AlwaysAsk,
Write,
Yolo,
}Variants§
AlwaysAsk
Ask before any mutating tool (read-only tools never ask).
Write
Auto-approve file writes; ask before commands / unknown tools.
Yolo
Auto-approve everything (hard policy gates still apply elsewhere).
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalMode
impl Clone for ApprovalMode
impl Copy for ApprovalMode
Source§impl Debug for ApprovalMode
impl Debug for ApprovalMode
impl Eq for ApprovalMode
Source§impl PartialEq for ApprovalMode
impl PartialEq for ApprovalMode
impl StructuralPartialEq for ApprovalMode
Auto Trait Implementations§
impl Forget for ApprovalMode
impl Freeze for ApprovalMode
impl Move for ApprovalMode
impl RefUnwindSafe for ApprovalMode
impl Send for ApprovalMode
impl Sync for ApprovalMode
impl Unpin for ApprovalMode
impl UnsafeUnpin for ApprovalMode
impl UnwindSafe for ApprovalMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.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.