pub trait IdentityExt {
// Required method
fn get_identity(&self) -> Result<Identity, GetIdentityError>;
}Expand description
Helper trait to retrieve an Identity instance from various actix-web’s types.
Required Methods§
Sourcefn get_identity(&self) -> Result<Identity, GetIdentityError>
fn get_identity(&self) -> Result<Identity, GetIdentityError>
Retrieve the identity attached to the current session, if available.