pub struct HasRole<R: RBAC> { /* private fields */ }Expand description
Bridge from RBAC: a policy that checks if the user has a specific role.
Requires the rbac feature.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for HasRole<R>where
R: Freeze,
impl<R> RefUnwindSafe for HasRole<R>where
R: RefUnwindSafe,
impl<R> Send for HasRole<R>
impl<R> Sync for HasRole<R>
impl<R> Unpin for HasRole<R>where
R: Unpin,
impl<R> UnsafeUnpin for HasRole<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for HasRole<R>where
R: UnwindSafe,
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