pub struct RbacConfig { /* private fields */ }Expand description
Resolved RBAC rules.
Implementations§
Source§impl RbacConfig
impl RbacConfig
Sourcepub fn new(roles: &[RoleConfig], mapping: &RoleMappingConfig) -> Self
pub fn new(roles: &[RoleConfig], mapping: &RoleMappingConfig) -> Self
Build RBAC config from role definitions and claim-to-role mapping.
Trait Implementations§
Source§impl Clone for RbacConfig
impl Clone for RbacConfig
Source§fn clone(&self) -> RbacConfig
fn clone(&self) -> RbacConfig
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 moreAuto Trait Implementations§
impl Freeze for RbacConfig
impl RefUnwindSafe for RbacConfig
impl Send for RbacConfig
impl Sync for RbacConfig
impl Unpin for RbacConfig
impl UnsafeUnpin for RbacConfig
impl UnwindSafe for RbacConfig
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