pub trait OAuthProfileMapper: Send + Sync {
// Required method
fn map_profile<'life0, 'async_trait>(
&'life0 self,
profile: Value,
) -> Pin<Box<dyn Future<Output = Result<FieldOutput, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Asynchronous partial application mapping of the original provider profile. Absent keys retain published defaults; raw output remains independent from typed persistence, and returned IDs never replace original account authority.
Required Methods§
fn map_profile<'life0, 'async_trait>(
&'life0 self,
profile: Value,
) -> Pin<Box<dyn Future<Output = Result<FieldOutput, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".