pub enum CopilotApiTokenAuthInfoType {
CopilotApiToken,
}Expand description
Direct Copilot API authentication via the GITHUB_COPILOT_API_TOKEN + COPILOT_API_URL environment-variable pair. The token itself is read from the environment by the runtime, not carried in this struct.
Variants§
CopilotApiToken
Trait Implementations§
Source§impl Clone for CopilotApiTokenAuthInfoType
impl Clone for CopilotApiTokenAuthInfoType
Source§fn clone(&self) -> CopilotApiTokenAuthInfoType
fn clone(&self) -> CopilotApiTokenAuthInfoType
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 CopilotApiTokenAuthInfoType
impl Debug for CopilotApiTokenAuthInfoType
Source§impl Default for CopilotApiTokenAuthInfoType
impl Default for CopilotApiTokenAuthInfoType
Source§fn default() -> CopilotApiTokenAuthInfoType
fn default() -> CopilotApiTokenAuthInfoType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopilotApiTokenAuthInfoType
impl<'de> Deserialize<'de> for CopilotApiTokenAuthInfoType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CopilotApiTokenAuthInfoType
Source§impl PartialEq for CopilotApiTokenAuthInfoType
impl PartialEq for CopilotApiTokenAuthInfoType
Source§fn eq(&self, other: &CopilotApiTokenAuthInfoType) -> bool
fn eq(&self, other: &CopilotApiTokenAuthInfoType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CopilotApiTokenAuthInfoType
Auto Trait Implementations§
impl Freeze for CopilotApiTokenAuthInfoType
impl RefUnwindSafe for CopilotApiTokenAuthInfoType
impl Send for CopilotApiTokenAuthInfoType
impl Sync for CopilotApiTokenAuthInfoType
impl Unpin for CopilotApiTokenAuthInfoType
impl UnsafeUnpin for CopilotApiTokenAuthInfoType
impl UnwindSafe for CopilotApiTokenAuthInfoType
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