Struct kanidm_proto::oauth2::AccessTokenResponse
source · pub struct AccessTokenResponse {
pub access_token: String,
pub token_type: AccessTokenType,
pub expires_in: u32,
pub refresh_token: Option<String>,
pub scope: Option<String>,
pub id_token: Option<String>,
}
Expand description
The response for an access token
Fields§
§access_token: String
§token_type: AccessTokenType
§expires_in: u32
Expiration relative to now
in seconds.
refresh_token: Option<String>
§scope: Option<String>
Space separated list of scopes that were approved, if this differs from the original request.
id_token: Option<String>
If the openid
scope was requested, an id_token
may be present in the response.
Trait Implementations§
source§impl Debug for AccessTokenResponse
impl Debug for AccessTokenResponse
source§impl<'de> Deserialize<'de> for AccessTokenResponse
impl<'de> Deserialize<'de> for AccessTokenResponse
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
Auto Trait Implementations§
impl Freeze for AccessTokenResponse
impl RefUnwindSafe for AccessTokenResponse
impl Send for AccessTokenResponse
impl Sync for AccessTokenResponse
impl Unpin for AccessTokenResponse
impl UnwindSafe for AccessTokenResponse
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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