pub struct CopilotToken {
pub access_token: String,
pub token_type: String,
pub scope: String,
pub expires_at: Option<SystemTime>,
}Expand description
Token obtained from successful authentication.
Fields§
§access_token: StringThe access token for API requests.
token_type: StringToken type (usually “bearer”).
scope: StringOAuth scope granted.
expires_at: Option<SystemTime>When the token expires (if known).
Trait Implementations§
Source§impl Clone for CopilotToken
impl Clone for CopilotToken
Source§impl Debug for CopilotToken
impl Debug for CopilotToken
Source§impl<'de> Deserialize<'de> for CopilotToken
impl<'de> Deserialize<'de> for CopilotToken
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
Auto Trait Implementations§
impl Forget for CopilotToken
impl Freeze for CopilotToken
impl RefUnwindSafe for CopilotToken
impl Send for CopilotToken
impl Sync for CopilotToken
impl Unpin for CopilotToken
impl UnsafeUnpin for CopilotToken
impl UnwindSafe for CopilotToken
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