pub trait Identity: Send + Sync {
// Required method
fn access_token(
&self,
identity: String,
) -> impl Future<Output = Result<String>> + Send;
}Expand description
The Identity trait defines behaviors for interacting with identity providers.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.