#[non_exhaustive]pub enum DenialCode {
Show 16 variants
ParseError,
PassthroughRefused,
SchemaViolation,
SchemaMissing,
PolicyDenied,
BudgetExceeded,
BudgetError,
UnmappedTool,
MissionExpired,
MissionDenied,
ScopeInsufficient,
TokenRevoked,
NoBackend,
IntentTokenError,
PayoutInvalid,
PdpDenied,
}Expand description
Machine-readable denial code attached to every ToolVerdict::Blocked.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ParseError
JSON-RPC envelope did not parse (malformed JSON, wrong version, etc.).
PassthroughRefused
Method is not tools/call — the call was passed through or refused
at the protocol level.
SchemaViolation
Tool arguments failed JSON Schema validation.
SchemaMissing
No argument schema configured for this tool and require_schema is on.
PolicyDenied
A named policy engine denied the call.
BudgetExceeded
Session or principal action budget exhausted.
BudgetError
Budget subsystem failed and the sandbox failed closed.
UnmappedTool
Tool has no configured intent mapping (pillar 2: AuthZEN).
MissionExpired
The active mission has expired.
MissionDenied
The active mission does not authorize this intent.
ScopeInsufficient
The caller’s identity scopes do not cover the required tool scope.
TokenRevoked
Identity token was revoked (JTI revocation list).
NoBackend
No backend is configured for this tool.
IntentTokenError
The intent token could not be issued (signing failure, clock skew, etc.).
PayoutInvalid
Payout amount field could not be parsed or is negative.
PdpDenied
The external AuthZEN policy decision point denied the call.
Implementations§
Trait Implementations§
Source§impl Clone for DenialCode
impl Clone for DenialCode
Source§fn clone(&self) -> DenialCode
fn clone(&self) -> DenialCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DenialCode
impl Debug for DenialCode
Source§impl<'de> Deserialize<'de> for DenialCode
impl<'de> Deserialize<'de> for DenialCode
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>,
Source§impl Display for DenialCode
impl Display for DenialCode
Source§impl Hash for DenialCode
impl Hash for DenialCode
Source§impl PartialEq for DenialCode
impl PartialEq for DenialCode
Source§fn eq(&self, other: &DenialCode) -> bool
fn eq(&self, other: &DenialCode) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DenialCode
impl Serialize for DenialCode
impl Copy for DenialCode
impl Eq for DenialCode
impl StructuralPartialEq for DenialCode
Auto Trait Implementations§
impl Freeze for DenialCode
impl RefUnwindSafe for DenialCode
impl Send for DenialCode
impl Sync for DenialCode
impl Unpin for DenialCode
impl UnsafeUnpin for DenialCode
impl UnwindSafe for DenialCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more