pub enum ApprovalReason {
PolicyRequiresConfirmation,
EscalatedRisk,
UnknownTarget,
SensitivePath,
SensitiveCommand,
SensitiveServer,
SensitiveAuthScope,
}Expand description
Why a permission policy is requesting human approval before proceeding.
Used inside ApprovalRequest so the UI layer can display context-appropriate
prompts to the user.
Variants§
PolicyRequiresConfirmation
The active policy always requires confirmation for this kind of operation.
EscalatedRisk
The operation was flagged as higher risk than usual.
UnknownTarget
The target (server, path, etc.) was not recognised by any policy.
SensitivePath
The operation targets a filesystem path that is not in the allowed set.
SensitiveCommand
The shell command is not in the pre-approved allow-list.
SensitiveServer
The MCP server is not in the trusted set.
SensitiveAuthScope
The MCP auth scope is not in the pre-approved set.
Trait Implementations§
Source§impl Clone for ApprovalReason
impl Clone for ApprovalReason
Source§fn clone(&self) -> ApprovalReason
fn clone(&self) -> ApprovalReason
Returns a duplicate of the value. Read more
1.0.0 · 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 ApprovalReason
impl Debug for ApprovalReason
Source§impl<'de> Deserialize<'de> for ApprovalReason
impl<'de> Deserialize<'de> for ApprovalReason
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
Source§impl PartialEq for ApprovalReason
impl PartialEq for ApprovalReason
Source§impl Serialize for ApprovalReason
impl Serialize for ApprovalReason
impl Eq for ApprovalReason
impl StructuralPartialEq for ApprovalReason
Auto Trait Implementations§
impl Freeze for ApprovalReason
impl RefUnwindSafe for ApprovalReason
impl Send for ApprovalReason
impl Sync for ApprovalReason
impl Unpin for ApprovalReason
impl UnsafeUnpin for ApprovalReason
impl UnwindSafe for ApprovalReason
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