#[non_exhaustive]pub struct GooglePayload {Show 18 fields
pub aud: String,
pub exp: u64,
pub iat: u64,
pub iss: String,
pub sub: String,
pub at_hash: Option<String>,
pub azp: Option<String>,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub family_name: Option<String>,
pub given_name: Option<String>,
pub hd: Option<String>,
pub locale: Option<String>,
pub name: Option<String>,
pub nonce: Option<String>,
pub picture: Option<String>,
pub nbf: Option<u64>,
pub jti: Option<String>,
}
Expand description
GooglePayload
is the user data from google.
see https://developers.google.com/identity/openid-connect/openid-connect for more info.
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.aud: String
§exp: u64
§iat: u64
§iss: String
§sub: String
§at_hash: Option<String>
§azp: Option<String>
§email: Option<String>
§email_verified: Option<bool>
§family_name: Option<String>
§given_name: Option<String>
§hd: Option<String>
§locale: Option<String>
§name: Option<String>
§nonce: Option<String>
§picture: Option<String>
§nbf: Option<u64>
§jti: Option<String>
Trait Implementations§
Source§impl Clone for GooglePayload
impl Clone for GooglePayload
Source§fn clone(&self) -> GooglePayload
fn clone(&self) -> GooglePayload
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 GooglePayload
impl Debug for GooglePayload
Source§impl<'de> Deserialize<'de> for GooglePayload
impl<'de> Deserialize<'de> for GooglePayload
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 GooglePayload
impl RefUnwindSafe for GooglePayload
impl Send for GooglePayload
impl Sync for GooglePayload
impl Unpin for GooglePayload
impl UnwindSafe for GooglePayload
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