pub struct CopilotTokenResponse {
pub token: String,
pub expires_at: u64,
}
Expand description
Response from the GitHub Copilot token endpoint.
The expires_at
field is a Unix timestamp.
Fields§
§token: String
The Copilot token.
expires_at: u64
Expiration time as a Unix timestamp.
Trait Implementations§
Source§impl Debug for CopilotTokenResponse
impl Debug for CopilotTokenResponse
Source§impl<'de> Deserialize<'de> for CopilotTokenResponse
impl<'de> Deserialize<'de> for CopilotTokenResponse
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 Freeze for CopilotTokenResponse
impl RefUnwindSafe for CopilotTokenResponse
impl Send for CopilotTokenResponse
impl Sync for CopilotTokenResponse
impl Unpin for CopilotTokenResponse
impl UnwindSafe for CopilotTokenResponse
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