pub struct UserInfo {
pub id: String,
pub email: Option<String>,
pub name: Option<String>,
pub email_verified: bool,
}Expand description
A plain-data snapshot of the core user fields, passed to callback hooks.
AuthUser is not dyn-compatible (it requires Serialize), so we
extract the fields the callbacks are most likely to need into this struct.
Fields§
§id: String§email: Option<String>§name: Option<String>§email_verified: boolTrait Implementations§
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