[−][src]Struct open_api_hydra::models::oauth_token_response::OauthTokenResponse
OauthTokenResponse : The token response
Fields
access_token: Option<String>
The access token issued by the authorization server.
expires_in: Option<i64>
The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.
id_token: Option<i64>
To retrieve a refresh token request the id_token scope.
refresh_token: Option<String>
The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope "offline" to your access token request.
scope: Option<i64>
The scope of the access token
token_type: Option<String>
The type of the token issued
Implementations
impl OauthTokenResponse
[src]
pub fn new() -> OauthTokenResponse
[src]
The token response
Trait Implementations
impl Clone for OauthTokenResponse
[src]
pub fn clone(&self) -> OauthTokenResponse
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OauthTokenResponse
[src]
impl<'de> Deserialize<'de> for OauthTokenResponse
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<OauthTokenResponse> for OauthTokenResponse
[src]
pub fn eq(&self, other: &OauthTokenResponse) -> bool
[src]
pub fn ne(&self, other: &OauthTokenResponse) -> bool
[src]
impl Serialize for OauthTokenResponse
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for OauthTokenResponse
[src]
Auto Trait Implementations
impl RefUnwindSafe for OauthTokenResponse
impl Send for OauthTokenResponse
impl Sync for OauthTokenResponse
impl Unpin for OauthTokenResponse
impl UnwindSafe for OauthTokenResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,