pub struct GithubProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl OAuthProvider for GithubProvider
impl OAuthProvider for GithubProvider
Source§fn provider_id(&self) -> &str
fn provider_id(&self) -> &str
Get the provider identifier.
Helper to get the authorization URL.
Source§fn exchange_code_for_identity<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
code: &'life1 str,
_code_verifier: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(Identity, OAuthToken), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exchange_code_for_identity<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
code: &'life1 str,
_code_verifier: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(Identity, OAuthToken), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Exchange an authorization code for an Identity.
Auto Trait Implementations§
impl Freeze for GithubProvider
impl !RefUnwindSafe for GithubProvider
impl Send for GithubProvider
impl Sync for GithubProvider
impl Unpin for GithubProvider
impl !UnwindSafe for GithubProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more