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: StringThe OAuth2 token header
expires_in: i64Expiration time for access token in seconds
refresh_token: Stringrefresh_token_expires_in: i64scope: StringThe OAuth2 token header
token_type: TokenTypeTrait Implementations
sourceimpl Clone for OAuth2Token
impl Clone for OAuth2Token
sourcefn clone(&self) -> OAuth2Token
fn clone(&self) -> OAuth2Token
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 OAuth2Token
impl Debug for OAuth2Token
sourceimpl<'de> Deserialize<'de> for OAuth2Token
impl<'de> Deserialize<'de> for OAuth2Token
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
sourceimpl JsonSchema for OAuth2Token
impl JsonSchema for OAuth2Token
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 moresourceimpl PartialEq<OAuth2Token> for OAuth2Token
impl PartialEq<OAuth2Token> for OAuth2Token
sourcefn eq(&self, other: &OAuth2Token) -> bool
fn eq(&self, other: &OAuth2Token) -> bool
sourceimpl 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
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