pub struct UserSchema {Show 25 fields
pub id: Option<String>,
pub aud: Option<String>,
pub role: Option<String>,
pub email: Option<String>,
pub email_confirmed_at: Option<DateTime<Utc>>,
pub phone: Option<String>,
pub phone_confirmed_at: Option<DateTime<Utc>>,
pub confirmation_sent_at: Option<DateTime<Utc>>,
pub confirmed_at: Option<DateTime<Utc>>,
pub recovery_sent_at: Option<DateTime<Utc>>,
pub new_email: Option<String>,
pub email_change_sent_at: Option<DateTime<Utc>>,
pub new_phone: Option<String>,
pub phone_change_sent_at: Option<DateTime<Utc>>,
pub reauthentication_sent_at: Option<DateTime<Utc>>,
pub last_sign_in_at: Option<DateTime<Utc>>,
pub app_metadata: Option<OwnedValue>,
pub user_metadata: Option<OwnedValue>,
pub factors: Option<Vec<MFAFactorSchema>>,
pub identities: Option<Vec<IdentitySchema>>,
pub banned_until: Option<DateTime<Utc>>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub deleted_at: Option<DateTime<Utc>>,
pub is_anonymous: Option<bool>,
}Expand description
Object describing the user related to the issued access and refresh tokens.
Fields§
§id: Option<String>User ID.
aud: Option<String>Deprecated.
role: Option<String>Role.
email: Option<String>User’s primary contact email.
email_confirmed_at: Option<DateTime<Utc>>Timestamp when the email was confirmed.
phone: Option<String>User’s primary contact phone number.
phone_confirmed_at: Option<DateTime<Utc>>Timestamp when the phone number was confirmed.
confirmation_sent_at: Option<DateTime<Utc>>Timestamp when the confirmation was sent.
confirmed_at: Option<DateTime<Utc>>Timestamp when the user was confirmed.
recovery_sent_at: Option<DateTime<Utc>>Timestamp when the recovery email was sent.
new_email: Option<String>New email address if the user is changing it.
email_change_sent_at: Option<DateTime<Utc>>Timestamp when the email change was sent.
new_phone: Option<String>New phone number if the user is changing it.
phone_change_sent_at: Option<DateTime<Utc>>Timestamp when the phone change was sent.
reauthentication_sent_at: Option<DateTime<Utc>>Timestamp when reauthentication was sent.
last_sign_in_at: Option<DateTime<Utc>>Timestamp of the last sign-in.
app_metadata: Option<OwnedValue>Application-specific metadata.
user_metadata: Option<OwnedValue>User-specific metadata.
factors: Option<Vec<MFAFactorSchema>>Multi-factor authentication factors.
identities: Option<Vec<IdentitySchema>>External identities linked to the user.
banned_until: Option<DateTime<Utc>>Timestamp until which the user is banned.
created_at: Option<DateTime<Utc>>Timestamp when the user was created.
updated_at: Option<DateTime<Utc>>Timestamp when the user was last updated.
deleted_at: Option<DateTime<Utc>>Timestamp when the user was deleted.
is_anonymous: Option<bool>Indicates if the user is anonymous.
Implementations§
Source§impl UserSchema
impl UserSchema
Sourcepub fn builder() -> UserSchemaBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> UserSchemaBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building UserSchema.
On the builder, call .id(...)(optional), .aud(...)(optional), .role(...)(optional), .email(...)(optional), .email_confirmed_at(...)(optional), .phone(...)(optional), .phone_confirmed_at(...)(optional), .confirmation_sent_at(...)(optional), .confirmed_at(...)(optional), .recovery_sent_at(...)(optional), .new_email(...)(optional), .email_change_sent_at(...)(optional), .new_phone(...)(optional), .phone_change_sent_at(...)(optional), .reauthentication_sent_at(...)(optional), .last_sign_in_at(...)(optional), .app_metadata(...)(optional), .user_metadata(...)(optional), .factors(...)(optional), .identities(...)(optional), .banned_until(...)(optional), .created_at(...)(optional), .updated_at(...)(optional), .deleted_at(...)(optional), .is_anonymous(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of UserSchema.
Trait Implementations§
Source§impl Clone for UserSchema
impl Clone for UserSchema
Source§fn clone(&self) -> UserSchema
fn clone(&self) -> UserSchema
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserSchema
impl Debug for UserSchema
Source§impl<'de> Deserialize<'de> for UserSchema
impl<'de> Deserialize<'de> for UserSchema
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>,
Auto Trait Implementations§
impl Freeze for UserSchema
impl RefUnwindSafe for UserSchema
impl Send for UserSchema
impl Sync for UserSchema
impl Unpin for UserSchema
impl UnwindSafe for UserSchema
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)