pub struct RolePolicy { /* private fields */ }Expand description
Role-based access control policy.
Validates the incoming request via a token authenticator (Bearer token) and evaluates whether
the principal holds the required roles.
When all_required is true, every listed role must be present.
When all_required is false, at least one listed role must be present.
Implementations§
Source§impl RolePolicy
impl RolePolicy
Trait Implementations§
Source§impl SecurityPolicy for RolePolicy
impl SecurityPolicy for RolePolicy
Auto Trait Implementations§
impl Freeze for RolePolicy
impl !RefUnwindSafe for RolePolicy
impl Send for RolePolicy
impl Sync for RolePolicy
impl Unpin for RolePolicy
impl UnsafeUnpin for RolePolicy
impl !UnwindSafe for RolePolicy
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