[][src]Trait requiem_identity::RequestIdentity

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

fn get_identity(&self) -> Option<String>

Loading content...


impl<T> RequestIdentity for T where
    T: HttpMessage

Loading content...