pub struct Auth0User {
pub sub: String,
pub email: String,
pub email_verified: Option<bool>,
pub name: Option<String>,
pub picture: Option<String>,
pub locale: Option<String>,
pub nickname: Option<String>,
}Expand description
Auth0 user information
Fields§
§sub: StringSubject — unique user identifier (sub claim)
email: StringUser’s primary email address
email_verified: Option<bool>Whether the email address has been verified
name: Option<String>User’s full display name
picture: Option<String>URL of the user’s profile picture
locale: Option<String>User’s locale (e.g., "en-US")
nickname: Option<String>Auth0 nickname (usually the part before @ in the email)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Auth0User
impl<'de> Deserialize<'de> for Auth0User
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 Auth0User
impl RefUnwindSafe for Auth0User
impl Send for Auth0User
impl Sync for Auth0User
impl Unpin for Auth0User
impl UnsafeUnpin for Auth0User
impl UnwindSafe for Auth0User
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more