pub struct BaseRoles;Available on crate feature
core only.Implementations§
Source§impl BaseRoles
impl BaseRoles
pub const ANONYMOUS: &'static str = "anonymous"
pub const USER: &'static str = "user"
pub const ADMIN: &'static str = "admin"
pub const fn available_roles() -> &'static [&'static str]
pub fn anonymous() -> BaseRole
pub fn admin() -> BaseRole
pub fn all() -> Vec<BaseRole>
pub const fn is_admin_permission_wildcard() -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaseRoles
impl RefUnwindSafe for BaseRoles
impl Send for BaseRoles
impl Sync for BaseRoles
impl Unpin for BaseRoles
impl UnsafeUnpin for BaseRoles
impl UnwindSafe for BaseRoles
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