pub trait AuthoritiesExtractor<'a, Req, Type> {
type Future: Future<Output = Result<HashSet<Type>, Error>>;
// Required method
fn extract(&self, request: &'a mut ServiceRequest) -> Self::Future;
}
pub trait AuthoritiesExtractor<'a, Req, Type> {
type Future: Future<Output = Result<HashSet<Type>, Error>>;
// Required method
fn extract(&self, request: &'a mut ServiceRequest) -> Self::Future;
}