Skip to main content

Identity

Trait Identity 

Source
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§

Source

fn access_token( &self, identity: String, ) -> impl Future<Output = Result<String>> + Send

Get an access token for the specified identity.

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.

Implementors§