Enum DenyReason
pub enum DenyReason {
NoCredential,
BadCredential,
TokenExpired,
MfaRequired,
AliasNotEntitled,
Misconfigured,
}Expand description
Why a credential was rejected. Fail-closed: any ambiguity ⇒ a Denied variant,
never a silent allow.
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.
AliasNotEntitled
The principal is not entitled to the requested agent alias.
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 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
Source§impl PartialEq for DenyReason
impl PartialEq for DenyReason
Source§impl Serialize for DenyReason
impl Serialize for DenyReason
impl Copy for DenyReason
impl Eq 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