pub struct OauthTokenResponse {
pub access_token: Option<String>,
pub expires_in: Option<i64>,
pub id_token: Option<i64>,
pub refresh_token: Option<String>,
pub scope: Option<i64>,
pub token_type: Option<String>,
}
Expand description
OauthTokenResponse : The token response
Fields§
§access_token: Option<String>
The access token issued by the authorization server.
expires_in: Option<i64>
The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.
id_token: Option<i64>
To retrieve a refresh token request the id_token scope.
refresh_token: Option<String>
The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope "offline" to your access token request.
scope: Option<i64>
The scope of the access token
token_type: Option<String>
The type of the token issued
Implementations§
Source§impl OauthTokenResponse
impl OauthTokenResponse
Sourcepub fn new() -> OauthTokenResponse
pub fn new() -> OauthTokenResponse
The token response
Trait Implementations§
Source§impl Clone for OauthTokenResponse
impl Clone for OauthTokenResponse
Source§fn clone(&self) -> OauthTokenResponse
fn clone(&self) -> OauthTokenResponse
Returns a copy 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 OauthTokenResponse
impl Debug for OauthTokenResponse
Source§impl<'de> Deserialize<'de> for OauthTokenResponse
impl<'de> Deserialize<'de> for OauthTokenResponse
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
Source§impl PartialEq for OauthTokenResponse
impl PartialEq for OauthTokenResponse
Source§impl Serialize for OauthTokenResponse
impl Serialize for OauthTokenResponse
impl StructuralPartialEq for OauthTokenResponse
Auto Trait Implementations§
impl Freeze for OauthTokenResponse
impl RefUnwindSafe for OauthTokenResponse
impl Send for OauthTokenResponse
impl Sync for OauthTokenResponse
impl Unpin for OauthTokenResponse
impl UnwindSafe for OauthTokenResponse
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