pub struct OAuthTokens {
pub access_token: String,
pub refresh_token: Option<String>,
pub expires_in: Option<u64>,
}Expand description
OAuth tokens returned from the authorization server.
Fields§
§access_token: String§refresh_token: Option<String>§expires_in: Option<u64>Token lifetime in seconds as reported by the server, if present.
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 moreAuto Trait Implementations§
impl Freeze for OAuthTokens
impl RefUnwindSafe for OAuthTokens
impl Send for OAuthTokens
impl Sync for OAuthTokens
impl Unpin for OAuthTokens
impl UnsafeUnpin for OAuthTokens
impl UnwindSafe for OAuthTokens
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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