pub struct OAuthCredentials {
pub access: String,
pub refresh: String,
pub expires: i64,
pub enterprise_url: Option<String>,
pub extra: HashMap<String, String>,
}Expand description
Credentials returned from a successful OAuth login or refresh.
Fields§
§access: String§refresh: String§expires: i64§enterprise_url: Option<String>§extra: HashMap<String, String>Provider-specific extra data (e.g. available model IDs for Copilot).
Trait Implementations§
Source§impl Clone for OAuthCredentials
impl Clone for OAuthCredentials
Source§fn clone(&self) -> OAuthCredentials
fn clone(&self) -> OAuthCredentials
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 moreAuto Trait Implementations§
impl Freeze for OAuthCredentials
impl RefUnwindSafe for OAuthCredentials
impl Send for OAuthCredentials
impl Sync for OAuthCredentials
impl Unpin for OAuthCredentials
impl UnsafeUnpin for OAuthCredentials
impl UnwindSafe for OAuthCredentials
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