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: String
§name: 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: bool
§gender: Option<String>
§birthdate: Option<NaiveDate>
§zoneinfo: Option<String>
§locale: Option<String>
§phone_number: Option<String>
§phone_number_verified: bool
§address: Option<Address>
§updated_at: Option<i64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Userinfo
impl<'de> Deserialize<'de> for Userinfo
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 Userinfo
impl RefUnwindSafe for Userinfo
impl Send for Userinfo
impl Sync for Userinfo
impl Unpin for Userinfo
impl UnwindSafe for Userinfo
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more