pub struct GitHubCopilotOAuth;Trait Implementations§
Source§impl OAuthProvider for GitHubCopilotOAuth
impl OAuthProvider for GitHubCopilotOAuth
Source§fn login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
callbacks: &'life1 mut OAuthLoginCallbacks<'life2>,
) -> Pin<Box<dyn Future<Output = Result<OAuthCredentials, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
callbacks: &'life1 mut OAuthLoginCallbacks<'life2>,
) -> Pin<Box<dyn Future<Output = Result<OAuthCredentials, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Run the login flow (device code for Copilot, callback-server for Anthropic).
Source§fn refresh_token<'life0, 'life1, 'async_trait>(
&'life0 self,
credentials: &'life1 OAuthCredentials,
) -> Pin<Box<dyn Future<Output = Result<OAuthCredentials, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn refresh_token<'life0, 'life1, 'async_trait>(
&'life0 self,
credentials: &'life1 OAuthCredentials,
) -> Pin<Box<dyn Future<Output = Result<OAuthCredentials, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Refresh an expired token.
Source§fn get_api_key<'a>(&self, credentials: &'a OAuthCredentials) -> &'a str
fn get_api_key<'a>(&self, credentials: &'a OAuthCredentials) -> &'a str
Derive the API key (access token) for API requests.
Auto Trait Implementations§
impl Freeze for GitHubCopilotOAuth
impl RefUnwindSafe for GitHubCopilotOAuth
impl Send for GitHubCopilotOAuth
impl Sync for GitHubCopilotOAuth
impl Unpin for GitHubCopilotOAuth
impl UnsafeUnpin for GitHubCopilotOAuth
impl UnwindSafe for GitHubCopilotOAuth
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