pub enum AuthorizationDenial {
SubjectUnknown,
ResourceUnknown,
PermissionDenied,
PolicyNotApplicable,
MaintenanceRestricted,
}Expand description
Closed, non-sensitive reasons for rejecting an authorization request.
Resource, subject, credential, policy, and request values deliberately do not appear in this contract.
Variants§
SubjectUnknown
The subject cannot be authorized without exposing whether it exists.
ResourceUnknown
The resource cannot be authorized without exposing whether it exists.
PermissionDenied
The evaluated policy does not grant the requested operation.
PolicyNotApplicable
No applicable policy grants the requested operation.
MaintenanceRestricted
A maintenance restriction rejects the requested operation.
Trait Implementations§
Source§impl Clone for AuthorizationDenial
impl Clone for AuthorizationDenial
impl Copy for AuthorizationDenial
Source§impl Debug for AuthorizationDenial
impl Debug for AuthorizationDenial
impl Eq for AuthorizationDenial
Source§impl PartialEq for AuthorizationDenial
impl PartialEq for AuthorizationDenial
impl StructuralPartialEq for AuthorizationDenial
Auto Trait Implementations§
impl Freeze for AuthorizationDenial
impl RefUnwindSafe for AuthorizationDenial
impl Send for AuthorizationDenial
impl Sync for AuthorizationDenial
impl Unpin for AuthorizationDenial
impl UnsafeUnpin for AuthorizationDenial
impl UnwindSafe for AuthorizationDenial
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