pub struct CopilotSessionResponse {
pub token: String,
pub expires_at: i64,
}Expand description
Response from the Copilot internal token endpoint.
The token field is a short-lived session token (valid ~30 min).
expires_at is a Unix timestamp indicating when it expires.
Fields§
§token: String§expires_at: i64Trait Implementations§
Source§impl Debug for CopilotSessionResponse
impl Debug for CopilotSessionResponse
Source§impl<'de> Deserialize<'de> for CopilotSessionResponse
impl<'de> Deserialize<'de> for CopilotSessionResponse
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 CopilotSessionResponse
impl RefUnwindSafe for CopilotSessionResponse
impl Send for CopilotSessionResponse
impl Sync for CopilotSessionResponse
impl Unpin for CopilotSessionResponse
impl UnsafeUnpin for CopilotSessionResponse
impl UnwindSafe for CopilotSessionResponse
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