pub struct OAuth2TokenExchange {
pub access_token: Option<String>,
pub expires_in: Option<i64>,
pub id_token: Option<String>,
pub refresh_token: Option<String>,
pub scope: Option<String>,
pub token_type: Option<String>,
}
Expand description
OAuth2TokenExchange : OAuth2 Token Exchange Result
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<String>
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<String>
The scope of the access token
token_type: Option<String>
The type of the token issued
Implementations§
source§impl OAuth2TokenExchange
impl OAuth2TokenExchange
sourcepub fn new() -> OAuth2TokenExchange
pub fn new() -> OAuth2TokenExchange
OAuth2 Token Exchange Result
Trait Implementations§
source§impl Clone for OAuth2TokenExchange
impl Clone for OAuth2TokenExchange
source§fn clone(&self) -> OAuth2TokenExchange
fn clone(&self) -> OAuth2TokenExchange
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 OAuth2TokenExchange
impl Debug for OAuth2TokenExchange
source§impl Default for OAuth2TokenExchange
impl Default for OAuth2TokenExchange
source§impl<'de> Deserialize<'de> for OAuth2TokenExchange
impl<'de> Deserialize<'de> for OAuth2TokenExchange
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 OAuth2TokenExchange
impl PartialEq for OAuth2TokenExchange
source§fn eq(&self, other: &OAuth2TokenExchange) -> bool
fn eq(&self, other: &OAuth2TokenExchange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OAuth2TokenExchange
impl Serialize for OAuth2TokenExchange
impl StructuralPartialEq for OAuth2TokenExchange
Auto Trait Implementations§
impl RefUnwindSafe for OAuth2TokenExchange
impl Send for OAuth2TokenExchange
impl Sync for OAuth2TokenExchange
impl Unpin for OAuth2TokenExchange
impl UnwindSafe for OAuth2TokenExchange
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