pub struct OAuth2TokenResponse {
pub access_token: String,
pub token_type: String,
pub expires_in: Option<u64>,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
}Expand description
OAuth2 token response.
Fields§
§access_token: String§token_type: String§expires_in: Option<u64>§refresh_token: Option<String>§id_token: Option<String>Trait Implementations§
Source§impl Clone for OAuth2TokenResponse
impl Clone for OAuth2TokenResponse
Source§fn clone(&self) -> OAuth2TokenResponse
fn clone(&self) -> OAuth2TokenResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OAuth2TokenResponse
impl Debug for OAuth2TokenResponse
Source§impl<'de> Deserialize<'de> for OAuth2TokenResponse
impl<'de> Deserialize<'de> for OAuth2TokenResponse
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 OAuth2TokenResponse
impl RefUnwindSafe for OAuth2TokenResponse
impl Send for OAuth2TokenResponse
impl Sync for OAuth2TokenResponse
impl Unpin for OAuth2TokenResponse
impl UnwindSafe for OAuth2TokenResponse
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