TokenToProfile

Trait TokenToProfile 

Source
pub trait TokenToProfile {
    // Required methods
    fn to_profile<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider: &'life1 OAuthProvider,
    ) -> Pin<Box<dyn Future<Output = Result<UserProfile>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn to_profile_with_extractor<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        provider: &'life1 OAuthProvider,
        extractor: &'life2 ProfileExtractor,
    ) -> Pin<Box<dyn Future<Output = Result<UserProfile>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for converting tokens to user profiles

Required Methods§

Source

fn to_profile<'life0, 'life1, 'async_trait>( &'life0 self, provider: &'life1 OAuthProvider, ) -> Pin<Box<dyn Future<Output = Result<UserProfile>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Convert this token to a user profile using the specified provider

Source

fn to_profile_with_extractor<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, provider: &'life1 OAuthProvider, extractor: &'life2 ProfileExtractor, ) -> Pin<Box<dyn Future<Output = Result<UserProfile>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Convert this token to a user profile with a custom extractor

Implementors§