Trait Authenticator
Source pub trait Authenticator {
// Required methods
fn login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
creds: &'life1 LoginRequest,
hwid: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<LoginResponse, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn me<'life0, 'life1, 'async_trait>(
&'life0 self,
access_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MeResponse, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn link_hwid<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
hwid: &'life1 str,
access_token: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}