pub struct UserInfo {
pub id: UserId,
pub username: String,
pub email: Option<String>,
pub phone: Option<String>,
pub display_name: Option<String>,
pub avatar_url: Option<String>,
pub verified: bool,
pub disabled: bool,
pub attributes: HashMap<String, Value>,
pub created_at: i64,
pub updated_at: i64,
}Expand description
用户信息
Fields§
§id: UserId用户 ID
username: String用户名
email: Option<String>邮箱
phone: Option<String>手机号
display_name: Option<String>显示名称
avatar_url: Option<String>头像 URL
verified: bool是否已验证
disabled: bool是否已禁用
attributes: HashMap<String, Value>自定义属性
created_at: i64创建时间
updated_at: 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 UnsafeUnpin 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