pub struct RoleValidator {}Expand description
The RoleValidator validates a role expression with a set of role names.
Roles are typically assigned to a user during an authentication process.
§Example
Let’s say a user authenticates and is given the roles user, subscribed and student.
For those the role expression user, teacher is invalid
while the expression user,teacher; subscribed is valid.
Implementations§
Auto Trait Implementations§
impl Freeze for RoleValidator
impl RefUnwindSafe for RoleValidator
impl Send for RoleValidator
impl Sync for RoleValidator
impl Unpin for RoleValidator
impl UnsafeUnpin for RoleValidator
impl UnwindSafe for RoleValidator
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