Trait actix_identity::IdentityExt
source · [−]pub trait IdentityExt {
fn get_identity(&self) -> Result<Identity, Error>;
}
Expand description
Helper trait to retrieve an Identity
instance from various actix-web
’s types.
Required Methods
sourcefn get_identity(&self) -> Result<Identity, Error>
fn get_identity(&self) -> Result<Identity, Error>
Retrieve the identity attached to the current session, if available.