Trait actix_identity::RequestIdentity[][src]

pub trait RequestIdentity {
    fn get_identity(&self) -> Option<String>;
}

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

Loading content...

Implementors

impl<T> RequestIdentity for T where
    T: HttpMessage, 
[src]

Loading content...