actix_web_grants::permissions

Trait PermissionsCheck

source
pub trait PermissionsCheck<T: PartialEq> {
    // Required methods
    fn has_permission(&self, permission: T) -> bool;
    fn has_permissions(&self, permissions: &[T]) -> bool;
    fn has_any_permission(&self, permissions: &[T]) -> bool;
}

Required Methods§

source

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

source

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

source

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

Implementors§