pub struct RbacCheck;Expand description
Pure RBAC permission checker.
Returns Allow when the principal’s effective permission set covers the
required permission.
Trait Implementations§
impl Copy for RbacCheck
Source§impl PermissionCheck for RbacCheck
impl PermissionCheck for RbacCheck
Source§fn check(
&self,
principal: &Principal,
permission: &Permission,
) -> PermissionVerdict
fn check( &self, principal: &Principal, permission: &Permission, ) -> PermissionVerdict
Check whether
principal has permission.Auto Trait Implementations§
impl Freeze for RbacCheck
impl RefUnwindSafe for RbacCheck
impl Send for RbacCheck
impl Sync for RbacCheck
impl Unpin for RbacCheck
impl UnsafeUnpin for RbacCheck
impl UnwindSafe for RbacCheck
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