Struct oidc::Userinfo

source ·
pub struct Userinfo {
Show 20 fields pub sub: String, pub name: Option<String>, pub given_name: Option<String>, pub family_name: Option<String>, pub middle_name: Option<String>, pub nickname: Option<String>, pub preferred_username: Option<String>, pub profile: Option<Url>, pub picture: Option<Url>, pub website: Option<Url>, pub email: Option<String>, pub email_verified: bool, pub gender: Option<String>, pub birthdate: Option<NaiveDate>, pub zoneinfo: Option<String>, pub locale: Option<String>, pub phone_number: Option<String>, pub phone_number_verified: bool, pub address: Option<Address>, pub updated_at: Option<i64>,
}
Expand description

The userinfo struct contains all possible userinfo fields regardless of scope. See spec.

Fields

sub: Stringname: Option<String>given_name: Option<String>family_name: Option<String>middle_name: Option<String>nickname: Option<String>preferred_username: Option<String>profile: Option<Url>picture: Option<Url>website: Option<Url>email: Option<String>email_verified: boolgender: Option<String>birthdate: Option<NaiveDate>zoneinfo: Option<String>locale: Option<String>phone_number: Option<String>phone_number_verified: booladdress: Option<Address>updated_at: Option<i64>

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.