pub struct StandardTokenResponse {
pub access_token: String,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub expires_in: Option<Duration>,
}Expand description
Standard OAuth2 token response
Fields§
§access_token: StringAccess token
refresh_token: Option<String>Refresh token
id_token: Option<String>ID token ⚠️ The ID token is not validated by this crate. You must manually validate the token.
expires_in: Option<Duration>The valid duration of the access token
Trait Implementations§
Source§impl Clone for StandardTokenResponse
impl Clone for StandardTokenResponse
Source§fn clone(&self) -> StandardTokenResponse
fn clone(&self) -> StandardTokenResponse
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 StandardTokenResponse
impl RefUnwindSafe for StandardTokenResponse
impl Send for StandardTokenResponse
impl Sync for StandardTokenResponse
impl Unpin for StandardTokenResponse
impl UnsafeUnpin for StandardTokenResponse
impl UnwindSafe for StandardTokenResponse
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