pub struct VerifiedIdToken {Show 13 fields
pub iss: String,
pub sub: String,
pub aud: String,
pub exp: i64,
pub iat: i64,
pub nonce: Option<String>,
pub sid: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
pub picture: Option<String>,
pub amr: Option<Vec<String>>,
pub auth_time: Option<i64>,
pub xjp_admin: Option<bool>,
}Expand description
Verified ID Token with parsed claims
Fields§
§iss: StringIssuer
sub: StringSubject (user ID)
aud: StringAudience
exp: i64Expiration time (Unix timestamp)
iat: i64Issued at time (Unix timestamp)
nonce: Option<String>Nonce (if provided)
sid: Option<String>Session ID
name: Option<String>User’s full name
email: Option<String>User’s email
picture: Option<String>User’s picture URL
amr: Option<Vec<String>>Authentication methods reference (e.g., [“wechat_qr”])
auth_time: Option<i64>Authentication time (Unix timestamp)
xjp_admin: Option<bool>Admin flag for XiaojinPro admin users
Trait Implementations§
Source§impl Clone for VerifiedIdToken
impl Clone for VerifiedIdToken
Source§fn clone(&self) -> VerifiedIdToken
fn clone(&self) -> VerifiedIdToken
Returns a duplicate of the value. Read more
1.0.0 · 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 VerifiedIdToken
impl Debug for VerifiedIdToken
Source§impl<'de> Deserialize<'de> for VerifiedIdToken
impl<'de> Deserialize<'de> for VerifiedIdToken
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 VerifiedIdToken
impl RefUnwindSafe for VerifiedIdToken
impl Send for VerifiedIdToken
impl Sync for VerifiedIdToken
impl Unpin for VerifiedIdToken
impl UnwindSafe for VerifiedIdToken
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
Mutably borrows from an owned value. Read more