pub trait RolesCheck<T> {
    // Required methods
    fn has_role(&self, permission: T) -> bool;
    fn has_roles(&self, permissions: &[T]) -> bool;
    fn has_any_role(&self, permissions: &[T]) -> bool;
}

Required Methods§

source

fn has_role(&self, permission: T) -> bool

source

fn has_roles(&self, permissions: &[T]) -> bool

source

fn has_any_role(&self, permissions: &[T]) -> bool

Implementors§