pub enum CopilotAuth {
ApiKey(String),
GitHubAccessToken(String),
OAuth,
}Variants§
Trait Implementations§
Source§impl ApiKey for CopilotAuth
impl ApiKey for CopilotAuth
Source§fn into_header(self) -> Option<Result<(HeaderName, HeaderValue), Error>>
fn into_header(self) -> Option<Result<(HeaderName, HeaderValue), Error>>
Convert this key into a default request header, if the generic client
should own that authentication header.
Source§impl Clone for CopilotAuth
impl Clone for CopilotAuth
Source§fn clone(&self) -> CopilotAuth
fn clone(&self) -> CopilotAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CopilotAuth
impl Debug for CopilotAuth
Source§impl<S> From<S> for CopilotAuth
impl<S> From<S> for CopilotAuth
Source§fn from(value: S) -> CopilotAuth
fn from(value: S) -> CopilotAuth
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CopilotAuth
impl RefUnwindSafe for CopilotAuth
impl Send for CopilotAuth
impl Sync for CopilotAuth
impl Unpin for CopilotAuth
impl UnsafeUnpin for CopilotAuth
impl UnwindSafe for CopilotAuth
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