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