pub struct RefreshToken {
pub access_token: String,
pub expires_in: i128,
pub scope: String,
pub token_type: String,
}
Expand description
A special token used to
update expired or invalid AccessTokens
without having to prompt the user for authorization.
Fields§
§access_token: String
The value used for for authentication or authorization.
expires_in: i128
The number of seconds until the new token expires.
scope: String
The Drive API scopes added to this access token as a string separated by spaces.
token_type: String
Type of this token.
Trait Implementations§
Source§impl Clone for RefreshToken
impl Clone for RefreshToken
Source§fn clone(&self) -> RefreshToken
fn clone(&self) -> RefreshToken
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 RefreshToken
impl Debug for RefreshToken
Source§impl<'de> Deserialize<'de> for RefreshToken
impl<'de> Deserialize<'de> for RefreshToken
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
Auto Trait Implementations§
impl Freeze for RefreshToken
impl RefUnwindSafe for RefreshToken
impl Send for RefreshToken
impl Sync for RefreshToken
impl Unpin for RefreshToken
impl UnwindSafe for RefreshToken
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