Type Alias RequestPrincipal
pub type RequestPrincipal = Option<Extension<RequestAuth>>;Expand description
The extractor a mutating handler declares to receive its
RequestAuth. Absent only when the handler is invoked outside the
route group (unit tests call handlers directly); nothing is enforced
or published then.
Aliased Type§
pub enum RequestPrincipal {
None,
Some(Extension<RequestAuth>),
}