pub enum ReasonCode {
Show 15 variants
Allow,
DenyToolNotFound,
DenySchemaMismatch,
DenyOutputDrift,
DenyBudgetExceeded,
DenyApprovalRequired,
DenyApprovalTimeout,
DenySandboxTrap,
DenyGasExhaustion,
DenyTimeLimit,
DenyMemoryLimit,
DenyPolicyViolation,
DenyTrustKeyRevoked,
DenyIdempotencyDuplicate,
ErrorInternal,
}Expand description
Deterministic reason codes returned by the kernel.
Variants§
Allow
DenyToolNotFound
DenySchemaMismatch
DenyOutputDrift
DenyBudgetExceeded
DenyApprovalRequired
DenyApprovalTimeout
DenySandboxTrap
DenyGasExhaustion
DenyTimeLimit
DenyMemoryLimit
DenyPolicyViolation
DenyTrustKeyRevoked
DenyIdempotencyDuplicate
ErrorInternal
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
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 ReasonCode
impl Debug for ReasonCode
Source§impl<'de> Deserialize<'de> for ReasonCode
impl<'de> Deserialize<'de> for ReasonCode
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 ReasonCode
impl PartialEq for ReasonCode
Source§impl Serialize for ReasonCode
impl Serialize for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnsafeUnpin for ReasonCode
impl UnwindSafe for ReasonCode
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