pub struct TokenResponse {
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub token_type: Option<String>,
pub expires_in: Option<i64>,
pub scope: Option<String>,
pub error: Option<String>,
}Expand description
Token Response
Fields§
§access_token: Option<String>The access token issued by the authorization server.
refresh_token: Option<String>The refresh token, which can be used to obtain new access tokens.
token_type: Option<String>The type of the token issued.
expires_in: Option<i64>The lifetime in seconds of the access token.
scope: Option<String>The scope, which limits the permissions on the access token.
error: Option<String>Error code
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TokenResponse
impl<'de> Deserialize<'de> for TokenResponse
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 TokenResponse
impl RefUnwindSafe for TokenResponse
impl Send for TokenResponse
impl Sync for TokenResponse
impl Unpin for TokenResponse
impl UnwindSafe for TokenResponse
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