Trait actix_identity::RequestIdentity [−][src]
Helper trait that allows to get Identity.
It could be used in middleware but identity policy must be set before any other middleware that needs identity
RequestIdentity is implemented both for ServiceRequest
and HttpRequest
.
Required methods
fn get_identity(&self) -> Option<String>
[src]
Implementors
impl<T> RequestIdentity for T where
T: HttpMessage,
[src]
T: HttpMessage,