pub struct OAuthTokens {
pub access_token: String,
pub access_token_expires_in_seconds: Option<f64>,
pub provider: String,
pub refresh_token: Option<String>,
pub refresh_token_expires_in_seconds: Option<f64>,
pub scopes: Vec<String>,
}Expand description
OAuth tokens associated with the user.
JSON schema
{
"title": "OAuthTokens",
"description": "OAuth tokens associated with the user.",
"type": "object",
"required": [
"access_token",
"provider"
],
"properties": {
"access_token": {
"type": "string"
},
"access_token_expires_in_seconds": {
"type": "number"
},
"provider": {
"type": "string"
},
"refresh_token": {
"type": "string"
},
"refresh_token_expires_in_seconds": {
"type": "number"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§access_token: String§access_token_expires_in_seconds: Option<f64>§provider: String§refresh_token: Option<String>§refresh_token_expires_in_seconds: Option<f64>§scopes: Vec<String>Trait Implementations§
Source§impl Clone for OAuthTokens
impl Clone for OAuthTokens
Source§fn clone(&self) -> OAuthTokens
fn clone(&self) -> OAuthTokens
Returns a duplicate 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 OAuthTokens
impl Debug for OAuthTokens
Source§impl<'de> Deserialize<'de> for OAuthTokens
impl<'de> Deserialize<'de> for OAuthTokens
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<&OAuthTokens> for OAuthTokens
impl From<&OAuthTokens> for OAuthTokens
Source§fn from(value: &OAuthTokens) -> Self
fn from(value: &OAuthTokens) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthTokens
impl RefUnwindSafe for OAuthTokens
impl Send for OAuthTokens
impl Sync for OAuthTokens
impl Unpin for OAuthTokens
impl UnwindSafe for OAuthTokens
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