pub struct RoleAuthorizer;Expand description
Role-based authorizer that checks resource:action patterns
Trait Implementations§
Source§impl Clone for RoleAuthorizer
impl Clone for RoleAuthorizer
Source§fn clone(&self) -> RoleAuthorizer
fn clone(&self) -> RoleAuthorizer
Returns a duplicate of the value. Read more
1.0.0 · 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 RoleAuthorizer
impl Debug for RoleAuthorizer
Source§impl Default for RoleAuthorizer
impl Default for RoleAuthorizer
Source§fn default() -> RoleAuthorizer
fn default() -> RoleAuthorizer
Returns the “default value” for a type. Read more
Source§impl PrimaryAuthorizer for RoleAuthorizer
impl PrimaryAuthorizer for RoleAuthorizer
Source§fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
claims: &'life1 Claims,
requirement: &'life2 SecRequirement,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
claims: &'life1 Claims,
requirement: &'life2 SecRequirement,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check if the claims satisfy the required resource:action
Auto Trait Implementations§
impl Freeze for RoleAuthorizer
impl RefUnwindSafe for RoleAuthorizer
impl Send for RoleAuthorizer
impl Sync for RoleAuthorizer
impl Unpin for RoleAuthorizer
impl UnwindSafe for RoleAuthorizer
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