Trait AuthoritiesCheck

Source
pub trait AuthoritiesCheck<T: Eq + Hash> {
    // Required methods
    fn has_authority(&self, authority: T) -> bool;
    fn has_authorities(&self, authorities: &[T]) -> bool;
    fn has_any_authority(&self, authorities: &[T]) -> bool;
}

Required Methods§

Source

fn has_authority(&self, authority: T) -> bool

Source

fn has_authorities(&self, authorities: &[T]) -> bool

Source

fn has_any_authority(&self, authorities: &[T]) -> bool

Implementors§