pub struct LeashUser {
pub id: String,
pub email: String,
pub name: String,
pub picture: Option<String>,
}Expand description
Authenticated user extracted from a Leash JWT.
Returned by Auth::user and the standalone
get_leash_user helper.
Fields§
§id: StringUnique user identifier (userId claim, with sub fallback).
email: StringEmail address.
name: StringDisplay name.
picture: Option<String>Profile picture URL, when present in the JWT.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LeashUser
impl<'de> Deserialize<'de> for LeashUser
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
impl Eq for LeashUser
impl StructuralPartialEq for LeashUser
Auto Trait Implementations§
impl Freeze for LeashUser
impl RefUnwindSafe for LeashUser
impl Send for LeashUser
impl Sync for LeashUser
impl Unpin for LeashUser
impl UnsafeUnpin for LeashUser
impl UnwindSafe for LeashUser
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