pub trait Authenticator {
// Required method
fn request_installation_token<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscription,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Provides authentication functionality.
Required Methods§
Sourcefn request_installation_token<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscription,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request_installation_token<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 Subscription,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Requests a GitHub Installation Access Token.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".