pub struct Payload {
pub client_id: Option<String>,
pub redirect_uris: Option<Vec<String>>,
pub client_name: Option<String>,
pub redirect_uri: Option<String>,
pub code_challenge: Option<String>,
pub scope: Option<String>,
pub resource: Option<String>,
pub binding: Option<String>,
pub credential: Option<String>,
pub ver: Option<String>,
pub auth_time: Option<u64>,
}Expand description
The claims that depend on the token’s kind.
Fields§
§client_id: Option<String>The client a code, access or refresh token was issued to.
redirect_uris: Option<Vec<String>>A client’s registered redirect URIs.
client_name: Option<String>A client’s self-reported name.
redirect_uri: Option<String>The redirect URI a code was issued for.
code_challenge: Option<String>A code’s PKCE challenge.
scope: Option<String>The service granted.
resource: Option<String>The resource URL granted.
binding: Option<String>A CSRF token’s hash of its authorization request.
credential: Option<String>The person’s credential, sealed by credential::Sealer (code, access and refresh tokens).
ver: Option<String>The sign-in version (code, access and refresh tokens): it changes when the way people sign
in changes, such as a new owner’s password, which ends every earlier grant. See
AuthState::sign_in_version.
auth_time: Option<u64>When the person signed in, Unix seconds (code, access and refresh tokens). Kept through refreshes, so a grant ends a fixed time after sign-in however often it is refreshed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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>,
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Forget for Payload
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more