pub struct UserDetails {
pub id: String,
pub email: String,
pub roles: Vec<String>,
pub email_verified_at: Option<String>,
pub last_login_at: Option<String>,
pub is_frozen: bool,
pub is_whitelisted: bool,
pub created_at: Option<String>,
}Expand description
User details returned by the Developer API.
Contains full user information that isn’t available in JWT claims.
Fields§
§id: StringUser ID
email: StringUser’s email address
roles: Vec<String>User’s roles
email_verified_at: Option<String>When the email was verified (ISO 8601 format)
last_login_at: Option<String>When the user last logged in (ISO 8601 format)
is_frozen: boolWhether the user account is frozen
is_whitelisted: boolWhether the user is on the waitlist whitelist
created_at: Option<String>When the user account was created (ISO 8601 format)
Trait Implementations§
Source§impl Clone for UserDetails
impl Clone for UserDetails
Source§fn clone(&self) -> UserDetails
fn clone(&self) -> UserDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserDetails
impl Debug for UserDetails
Source§impl<'de> Deserialize<'de> for UserDetails
impl<'de> Deserialize<'de> for UserDetails
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 UserDetails
impl RefUnwindSafe for UserDetails
impl Send for UserDetails
impl Sync for UserDetails
impl Unpin for UserDetails
impl UnwindSafe for UserDetails
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