pub struct OAuthTokenSuccessResponse {
pub access_token: String,
pub expires_in: Option<f64>,
pub refresh_token: Option<String>,
pub token_type: OAuthTokenSuccessResponseTokenType,
}Expand description
Successful token response per RFC 6749 Section 5.1.
JSON schema
{
"title": "OAuthTokenSuccessResponse",
"description": "Successful token response per RFC 6749 Section 5.1.",
"type": "object",
"required": [
"access_token",
"token_type"
],
"properties": {
"access_token": {
"description": "The issued access token.",
"type": "string"
},
"expires_in": {
"description": "The lifetime in seconds of the access token.",
"type": "number"
},
"refresh_token": {
"description": "A refresh token for obtaining new access tokens.
Issued for device_code and refresh_token grants.",
"type": "string"
},
"token_type": {
"description": "The type of token issued.",
"type": "string",
"enum": [
"Bearer"
]
}
},
"x-stainless-model": "client_auth.oauth_token_success_response"
}Fields§
§access_token: StringThe issued access token.
expires_in: Option<f64>§refresh_token: Option<String>A refresh token for obtaining new access tokens. Issued for device_code and refresh_token grants.
token_type: OAuthTokenSuccessResponseTokenTypeThe type of token issued.
Trait Implementations§
Source§impl Clone for OAuthTokenSuccessResponse
impl Clone for OAuthTokenSuccessResponse
Source§fn clone(&self) -> OAuthTokenSuccessResponse
fn clone(&self) -> OAuthTokenSuccessResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OAuthTokenSuccessResponse
impl Debug for OAuthTokenSuccessResponse
Source§impl<'de> Deserialize<'de> for OAuthTokenSuccessResponse
impl<'de> Deserialize<'de> for OAuthTokenSuccessResponse
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 From<&OAuthTokenSuccessResponse> for OAuthTokenSuccessResponse
impl From<&OAuthTokenSuccessResponse> for OAuthTokenSuccessResponse
Source§fn from(value: &OAuthTokenSuccessResponse) -> Self
fn from(value: &OAuthTokenSuccessResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthTokenSuccessResponse
impl RefUnwindSafe for OAuthTokenSuccessResponse
impl Send for OAuthTokenSuccessResponse
impl Sync for OAuthTokenSuccessResponse
impl Unpin for OAuthTokenSuccessResponse
impl UnsafeUnpin for OAuthTokenSuccessResponse
impl UnwindSafe for OAuthTokenSuccessResponse
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