pub enum ApprovalMode {
AllowAll,
PromptUnmatched,
OnRequest,
DenyUnmatched,
}Expand description
The approval enforcement modes. Closed by design: a client selects a preconfigured mode and can never construct one; widening this enum is a deliberate, gate-visible protocol change.
Variants§
AllowAll
No prompts; everything runs.
PromptUnmatched
Prompt for anything no rule matches (the interactive default).
OnRequest
Tools run sandboxed; prompt only on explicit permission requests.
DenyUnmatched
Anything no rule matches is denied with a typed denial — the default-deny mode automation should use.
Trait Implementations§
Source§impl Clone for ApprovalMode
impl Clone for ApprovalMode
impl Copy for ApprovalMode
Source§impl Debug for ApprovalMode
impl Debug for ApprovalMode
Source§impl<'de> Deserialize<'de> for ApprovalMode
impl<'de> Deserialize<'de> for ApprovalMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApprovalMode
Source§impl PartialEq for ApprovalMode
impl PartialEq for ApprovalMode
Source§impl Serialize for ApprovalMode
impl Serialize for ApprovalMode
impl StructuralPartialEq for ApprovalMode
Auto Trait Implementations§
impl Freeze 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