#[non_exhaustive]pub enum ApprovalKind {
Gate,
Protected,
Removal,
DecodeAndRun,
Credential,
Escape,
Mcp,
JudgeFlag,
JudgeUnavailable,
ClientTool,
Other(String),
}Expand description
approval_request.kind: why a gate asks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gate
The mode’s gate.
Protected
A protected path.
Removal
A removal.
DecodeAndRun
Decoded text run as a command.
Credential
A credential.
Escape
An escape from the sandbox.
Mcp
An MCP call.
JudgeFlag
The judge flagged it.
The judge could not decide.
ClientTool
A client tool marked ask.
Other(String)
A word this SDK does not know.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalKind
impl Clone for ApprovalKind
Source§impl Debug for ApprovalKind
impl Debug for ApprovalKind
Source§impl<'de> Deserialize<'de> for ApprovalKind
impl<'de> Deserialize<'de> for ApprovalKind
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApprovalKind
Source§impl PartialEq for ApprovalKind
impl PartialEq for ApprovalKind
impl StructuralPartialEq for ApprovalKind
Auto Trait Implementations§
impl Freeze for ApprovalKind
impl RefUnwindSafe for ApprovalKind
impl Send for ApprovalKind
impl Sync for ApprovalKind
impl Unpin for ApprovalKind
impl UnsafeUnpin for ApprovalKind
impl UnwindSafe for ApprovalKind
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