Skip to main content

RequestPrincipal

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>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Extension<RequestAuth>)

Some value of type T.