pub struct AccessToken {
pub scope: String,
pub access_token: String,
pub token_type: String,
pub app_id: String,
pub expires_in: u64,
pub nonce: String,
}
Expand description
Represents the access token returned by the OAuth2 authentication.
https://developer.paypal.com/docs/api/get-an-access-token-postman/
Fields§
§scope: String
The OAuth2 scopes.
access_token: String
The access token.
token_type: String
The token type.
app_id: String
The app id.
expires_in: u64
Seconds until it expires.
nonce: String
The nonce.
Trait Implementations§
Source§impl Clone for AccessToken
impl Clone for AccessToken
Source§fn clone(&self) -> AccessToken
fn clone(&self) -> AccessToken
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 AccessToken
impl Debug for AccessToken
Source§impl<'de> Deserialize<'de> for AccessToken
impl<'de> Deserialize<'de> for AccessToken
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 Hash for AccessToken
impl Hash for AccessToken
Source§impl Ord for AccessToken
impl Ord for AccessToken
Source§fn cmp(&self, other: &AccessToken) -> Ordering
fn cmp(&self, other: &AccessToken) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AccessToken
impl PartialEq for AccessToken
Source§impl PartialOrd for AccessToken
impl PartialOrd for AccessToken
impl Eq for AccessToken
impl StructuralPartialEq for AccessToken
Auto Trait Implementations§
impl Freeze for AccessToken
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl UnwindSafe for AccessToken
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