Struct paypal_rust::client::auth::AuthResponse
source · [−]pub struct AuthResponse {
pub scope: Option<String>,
pub access_token: String,
pub refresh_token: Option<String>,
pub token_type: String,
pub app_id: String,
pub expires_in: i32,
pub nonce: String,
}
Fields
scope: Option<String>
Which scopes are granted. Comma seperated URLS as String.
access_token: String
Access token.
refresh_token: Option<String>
Refresh token.
token_type: String
Token type (Bearer, Basic, etc.).
app_id: String
The clients App ID.
expires_in: i32
Number of seconds until the access_token expires
nonce: String
Authentication Nonce.
Trait Implementations
sourceimpl Clone for AuthResponse
impl Clone for AuthResponse
sourcefn clone(&self) -> AuthResponse
fn clone(&self) -> AuthResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AuthResponse
impl Debug for AuthResponse
sourceimpl Default for AuthResponse
impl Default for AuthResponse
sourcefn default() -> AuthResponse
fn default() -> AuthResponse
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AuthResponse
impl<'de> Deserialize<'de> for AuthResponse
sourcefn 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 RefUnwindSafe for AuthResponse
impl Send for AuthResponse
impl Sync for AuthResponse
impl Unpin for AuthResponse
impl UnwindSafe for AuthResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more