#[non_exhaustive]pub struct ExchangedToken {
pub access_token: String,
pub expires_in: Option<u64>,
pub issued_token_type: Option<String>,
}Expand description
Successful response from an RFC 8693 token exchange.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_token: StringThe newly issued access token.
expires_in: Option<u64>Token lifetime in seconds (if provided by the authorization server).
issued_token_type: Option<String>Token type identifier (e.g.
urn:ietf:params:oauth:token-type:access_token).
Trait Implementations§
Source§impl Debug for ExchangedToken
impl Debug for ExchangedToken
Source§impl<'de> Deserialize<'de> for ExchangedToken
impl<'de> Deserialize<'de> for ExchangedToken
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 ExchangedToken
impl RefUnwindSafe for ExchangedToken
impl Send for ExchangedToken
impl Sync for ExchangedToken
impl Unpin for ExchangedToken
impl UnsafeUnpin for ExchangedToken
impl UnwindSafe for ExchangedToken
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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