pub struct UserInfo {Show 23 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<String>,
pub picture: Option<String>,
pub website: Option<String>,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub gender: Option<String>,
pub birthdate: Option<String>,
pub zoneinfo: Option<String>,
pub locale: Option<String>,
pub phone_number: Option<String>,
pub phone_number_verified: Option<bool>,
pub address: Option<Value>,
pub updated_at: Option<i64>,
pub xjp_admin: Option<bool>,
pub amr: Option<Vec<String>>,
pub auth_time: Option<i64>,
}Expand description
UserInfo response
Fields§
§sub: StringSubject - Identifier for the End-User
name: Option<String>End-User’s full name
given_name: Option<String>Given name(s) or first name(s)
family_name: Option<String>Surname(s) or last name(s)
middle_name: Option<String>Middle name(s)
nickname: Option<String>Casual name
preferred_username: Option<String>Preferred username
profile: Option<String>Profile page URL
picture: Option<String>Profile picture URL
website: Option<String>Web page or blog URL
email: Option<String>Preferred e-mail address
email_verified: Option<bool>True if e-mail address has been verified
gender: Option<String>Gender
birthdate: Option<String>Birthday (ISO 8601:2004 YYYY-MM-DD format)
zoneinfo: Option<String>Time zone (e.g., Europe/Paris, America/Los_Angeles)
locale: Option<String>Locale (e.g., en-US, fr-CA)
phone_number: Option<String>Preferred telephone number
phone_number_verified: Option<bool>True if phone number has been verified
address: Option<Value>Preferred postal address
updated_at: Option<i64>Time the information was last updated
xjp_admin: Option<bool>Admin flag for XiaojinPro admin users
amr: Option<Vec<String>>Authentication methods reference
auth_time: Option<i64>Authentication time
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