pub struct AuthUser {
pub sub: String,
pub email: Option<String>,
pub name: Option<String>,
pub username: Option<String>,
pub is_dev: bool,
}Expand description
Authenticated user info extracted from the token.
Fields§
§sub: String§email: Option<String>§name: Option<String>§username: Option<String>§is_dev: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for AuthUser
impl RefUnwindSafe for AuthUser
impl Send for AuthUser
impl Sync for AuthUser
impl Unpin for AuthUser
impl UnsafeUnpin for AuthUser
impl UnwindSafe for AuthUser
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