Enum DenyReason
#[non_exhaustive]pub enum DenyReason {
NoCredential,
BadCredential,
TokenExpired,
MfaRequired,
NotEntitled,
AliasNotEntitled,
UnknownProvider,
Misconfigured,
}Expand description
Why a credential was rejected. Fail-closed: any ambiguity ⇒ a Denied
variant, never a silent allow.
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.
NoCredential
No credential was presented.
BadCredential
A credential was presented but failed verification.
TokenExpired
The credential/session has expired.
MfaRequired
A second factor is required and was not satisfied.
NotEntitled
The credential authenticated but its claims/roster entry map to no permission profile, so the principal would hold no grants at all.
AliasNotEntitled
The principal is not entitled to the requested agent alias.
UnknownProvider
No provider matches the requested provider selection.
Misconfigured
The provider/config is misconfigured (fail closed, do not allow).
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) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DenyReason
Source§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