pub struct GoogleIdentityStsV1ExchangeTokenResponse {
pub access_token: Option<String>,
pub expires_in: Option<i32>,
pub issued_token_type: Option<String>,
pub token_type: Option<String>,
}
Expand description
Fields§
§access_token: Option<String>
An OAuth 2.0 security token, issued by Google, in response to the token exchange request. Tokens can vary in size, depending in part on the size of mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the right to change the token size and the maximum length at any time.
expires_in: Option<i32>
The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the subject_token
in the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the subject_token
.
issued_token_type: Option<String>
The token type. Always matches the value of requested_token_type
from the request.
token_type: Option<String>
The type of access token. Always has the value Bearer
.
Trait Implementations§
source§impl Clone for GoogleIdentityStsV1ExchangeTokenResponse
impl Clone for GoogleIdentityStsV1ExchangeTokenResponse
source§fn clone(&self) -> GoogleIdentityStsV1ExchangeTokenResponse
fn clone(&self) -> GoogleIdentityStsV1ExchangeTokenResponse
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 Default for GoogleIdentityStsV1ExchangeTokenResponse
impl Default for GoogleIdentityStsV1ExchangeTokenResponse
source§fn default() -> GoogleIdentityStsV1ExchangeTokenResponse
fn default() -> GoogleIdentityStsV1ExchangeTokenResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleIdentityStsV1ExchangeTokenResponse
impl<'de> Deserialize<'de> for GoogleIdentityStsV1ExchangeTokenResponse
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
impl ResponseResult for GoogleIdentityStsV1ExchangeTokenResponse
Auto Trait Implementations§
impl RefUnwindSafe for GoogleIdentityStsV1ExchangeTokenResponse
impl Send for GoogleIdentityStsV1ExchangeTokenResponse
impl Sync for GoogleIdentityStsV1ExchangeTokenResponse
impl Unpin for GoogleIdentityStsV1ExchangeTokenResponse
impl UnwindSafe for GoogleIdentityStsV1ExchangeTokenResponse
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