pub enum AdminPermissionError {
PluginNotRegistered,
EmptyPermissions,
MissingSubject,
UserNotFound,
Unauthenticated,
Forbidden,
Internal(AuthError),
}Expand description
Failure of an Admin permission check.
A denial from a trusted query is Ok(false). A denial from
AdminPermissionApi::authorize_request is AdminPermissionError::Forbidden.
Infrastructure failures are never reported as a denial or as a grant.
Variants§
PluginNotRegistered
AdminPlugin is not registered on this auth instance.
EmptyPermissions
The request names no resource, or names a resource without an action.
MissingSubject
The user ID or role to evaluate is empty.
UserNotFound
No stored user has the requested ID.
Unauthenticated
The headers do not identify a valid session.
This covers a missing or invalid credential, and an expired, revoked, or orphaned session.
Forbidden
The authenticated user’s current roles do not grant every requested action.
Internal(AuthError)
The store, the configuration, or another internal operation failed.
Trait Implementations§
Source§impl Debug for AdminPermissionError
impl Debug for AdminPermissionError
Source§impl Display for AdminPermissionError
impl Display for AdminPermissionError
Source§impl Error for AdminPermissionError
impl Error for AdminPermissionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for AdminPermissionError
impl !UnwindSafe for AdminPermissionError
impl Freeze for AdminPermissionError
impl Send for AdminPermissionError
impl Sync for AdminPermissionError
impl Unpin for AdminPermissionError
impl UnsafeUnpin for AdminPermissionError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.