[][src]Struct google_signin::IdInfo

pub struct IdInfo {
    pub iss: String,
    pub sub: String,
    pub azp: String,
    pub aud: String,
    pub iat: String,
    pub exp: String,
    pub hd: Option<String>,
    pub email: Option<String>,
    pub email_verified: Option<String>,
    pub name: Option<String>,
    pub picture: Option<String>,
    pub given_name: Option<String>,
    pub family_name: Option<String>,
    pub locale: Option<String>,
}

Fields

iss: String

These six fields are included in all Google ID Tokens.

sub: Stringazp: Stringaud: Stringiat: Stringexp: Stringhd: Option<String>

This value indicates the user belongs to a Google Hosted Domain

email: Option<String>

These seven fields are only included when the user has granted the "profile" and "email" OAuth scopes to the application.

email_verified: Option<String>name: Option<String>picture: Option<String>given_name: Option<String>family_name: Option<String>locale: Option<String>

Methods

impl IdInfo[src]

pub fn verify(&self, client: &Client) -> Result<(), Error>[src]

Trait Implementations

impl Debug for IdInfo[src]

impl<'de> Deserialize<'de> for IdInfo[src]

Auto Trait Implementations

impl Unpin for IdInfo

impl Sync for IdInfo

impl Send for IdInfo

impl UnwindSafe for IdInfo

impl RefUnwindSafe for IdInfo

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any
[src]

fn get_type(&self) -> TypeId[src]

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]