pub enum DenyReason {
UnknownIssuer,
BadSignature,
BearerMismatch,
OutOfScope,
OpNotGranted,
Expired,
Revoked,
Delegation(DelegationError),
EmptyChain,
NoCapability,
NotAccountable,
}Expand description
Why an access was denied.
Variants§
UnknownIssuer
BadSignature
BearerMismatch
OutOfScope
OpNotGranted
Expired
Revoked
The capability (or an ancestor in its chain) has been revoked.
Delegation(DelegationError)
A delegation link is invalid.
EmptyChain
An empty capability chain was presented.
NoCapability
Policy required a capability, but none was presented (e.g. an AI agent with no grant).
NotAccountable
Policy required the grant chain to root at an accountable roster member, and it did not.
Trait Implementations§
Source§impl Clone for DenyReason
impl Clone for DenyReason
Source§fn clone(&self) -> DenyReason
fn clone(&self) -> DenyReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DenyReason
impl Debug for DenyReason
Source§impl<'de> Deserialize<'de> for DenyReason
impl<'de> Deserialize<'de> for DenyReason
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 DenyReason
Source§impl PartialEq for DenyReason
impl PartialEq for DenyReason
Source§impl Serialize for DenyReason
impl Serialize for DenyReason
impl StructuralPartialEq for DenyReason
Auto Trait Implementations§
impl Freeze for DenyReason
impl RefUnwindSafe for DenyReason
impl Send for DenyReason
impl Sync for DenyReason
impl Unpin for DenyReason
impl UnsafeUnpin for DenyReason
impl UnwindSafe for DenyReason
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