pub trait AuthoritiesExtractor<'a, Request, Type, Error> {
type Future: Future<Output = Result<HashSet<Type>, Error>> + Send;
// Required method
fn extract(&self, request: &'a mut Request) -> Self::Future;
}
Expand description
Trait for extracting authorities from the request.
By default, is implemented for functions with signature fn(&mut Request) -> Result<HashSet<Type>, Into<Response>
.
But can be implemented for custom structures and enums.