pub struct GitHubCopilotProvider { /* private fields */ }Expand description
GitHub Copilot provider implementation
Implementations§
Source§impl GitHubCopilotProvider
impl GitHubCopilotProvider
pub fn new(auth: Box<dyn Auth>) -> Self
Sourcepub async fn start_device_flow() -> Result<DeviceCodeResponse>
pub async fn start_device_flow() -> Result<DeviceCodeResponse>
Start device code flow for authentication
Sourcepub async fn get_copilot_token(github_token: &str) -> Result<AuthCredentials>
pub async fn get_copilot_token(github_token: &str) -> Result<AuthCredentials>
Get Copilot API token using GitHub OAuth token
Auto Trait Implementations§
impl Freeze for GitHubCopilotProvider
impl !RefUnwindSafe for GitHubCopilotProvider
impl Send for GitHubCopilotProvider
impl Sync for GitHubCopilotProvider
impl Unpin for GitHubCopilotProvider
impl !UnwindSafe for GitHubCopilotProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more