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;
}
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;
}