#[non_exhaustive]pub struct OAuthTokenResponse {
pub access_token: OAuthAccessToken,
pub refresh_token: Option<OAuthRefreshToken>,
pub token_type: Option<String>,
pub expires_in: Option<u64>,
pub scope: Option<String>,
pub extra: BTreeMap<String, Value>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_token: OAuthAccessToken§refresh_token: Option<OAuthRefreshToken>§token_type: Option<String>§expires_in: Option<u64>§scope: Option<String>§extra: BTreeMap<String, Value>Implementations§
Source§impl OAuthTokenResponse
impl OAuthTokenResponse
pub fn access_token(&self) -> &OAuthAccessToken
pub fn refresh_token(&self) -> Option<&OAuthRefreshToken>
pub fn into_access_token(self) -> OAuthAccessToken
pub fn client_builder(&self) -> ClientBuilder
pub fn into_client_builder(self) -> ClientBuilder
Trait Implementations§
Source§impl Clone for OAuthTokenResponse
impl Clone for OAuthTokenResponse
Source§fn clone(&self) -> OAuthTokenResponse
fn clone(&self) -> OAuthTokenResponse
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 moreAuto Trait Implementations§
impl Freeze for OAuthTokenResponse
impl RefUnwindSafe for OAuthTokenResponse
impl Send for OAuthTokenResponse
impl Sync for OAuthTokenResponse
impl Unpin for OAuthTokenResponse
impl UnsafeUnpin for OAuthTokenResponse
impl UnwindSafe for OAuthTokenResponse
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