Struct ramp_api::types::OAuth2Token
source · pub struct OAuth2Token {
pub access_token: String,
pub expires_in: i64,
pub refresh_token: String,
pub refresh_token_expires_in: i64,
pub scope: String,
pub token_type: TokenType,
}
Expand description
Fields§
§access_token: String
The OAuth2 token header
expires_in: i64
Expiration time for access token in seconds
refresh_token: String
§refresh_token_expires_in: i64
§scope: String
The OAuth2 token header
token_type: TokenType
Trait Implementations§
source§impl Clone for OAuth2Token
impl Clone for OAuth2Token
source§fn clone(&self) -> OAuth2Token
fn clone(&self) -> OAuth2Token
Returns a copy 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 OAuth2Token
impl Debug for OAuth2Token
source§impl<'de> Deserialize<'de> for OAuth2Token
impl<'de> Deserialize<'de> for OAuth2Token
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 JsonSchema for OAuth2Token
impl JsonSchema for OAuth2Token
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<OAuth2Token> for OAuth2Token
impl PartialEq<OAuth2Token> for OAuth2Token
source§fn eq(&self, other: &OAuth2Token) -> bool
fn eq(&self, other: &OAuth2Token) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OAuth2Token
impl Serialize for OAuth2Token
impl StructuralPartialEq for OAuth2Token
Auto Trait Implementations§
impl RefUnwindSafe for OAuth2Token
impl Send for OAuth2Token
impl Sync for OAuth2Token
impl Unpin for OAuth2Token
impl UnwindSafe for OAuth2Token
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