pub struct IdTokenClaims {
pub iss: String,
pub aud: String,
pub iat: i64,
pub exp: i64,
pub auth_time: i64,
pub sub: String,
pub email: Option<String>,
pub email_verified: bool,
pub custom_claims: Map<String, Value>,
}Expand description
The decoded and verified claims of a Firebase ID token.
See https://firebase.google.com/docs/auth/admin/verify-id-tokens for the authoritative claim reference.
Fields§
§iss: StringThe token issuer, expected to be https://securetoken.google.com/<project-id>.
aud: StringThe intended audience, expected to equal the Firebase project ID.
iat: i64Issued-at time, in seconds since the Unix epoch.
exp: i64Expiration time, in seconds since the Unix epoch.
auth_time: i64The time the end user authenticated, in seconds since the Unix epoch.
sub: StringThe Firebase user id (UID) this token was issued for.
email: Option<String>The user’s email address, if available.
email_verified: boolWhether the user’s email address has been verified.
custom_claims: Map<String, Value>Custom claims attached to the user via set_custom_user_claims.
Trait Implementations§
Source§impl Clone for IdTokenClaims
impl Clone for IdTokenClaims
Source§fn clone(&self) -> IdTokenClaims
fn clone(&self) -> IdTokenClaims
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdTokenClaims
impl Debug for IdTokenClaims
Source§impl<'de> Deserialize<'de> for IdTokenClaims
impl<'de> Deserialize<'de> for IdTokenClaims
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 IdTokenClaims
impl RefUnwindSafe for IdTokenClaims
impl Send for IdTokenClaims
impl Sync for IdTokenClaims
impl Unpin for IdTokenClaims
impl UnsafeUnpin for IdTokenClaims
impl UnwindSafe for IdTokenClaims
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