pub struct User {
    pub user_id: Uuid,
    pub first_name: Option<String>,
    pub last_name: Option<String>,
    pub user_email: String,
    pub last_logged_in_at: Option<i64>,
    pub created_at: Option<i64>,
    pub email_verified: Option<bool>,
    pub status: Option<UserStatus>,
    pub roles: Option<Vec<AccessRoles>>,
    pub user_account_status: Option<UserAccountStatus>,
    pub accepted_latest_terms_and_conditions: Option<bool>,
}

Fields

user_id: Uuid

User Id

first_name: Option<String>

First Name

last_name: Option<String>

Last Name

user_email: String

User Email

last_logged_in_at: Option<i64>

Last login time of user.

created_at: Option<i64>

Creation time of user.

email_verified: Option<bool>

Whether this user’s email has been verified.

status: Option<UserStatus>roles: Option<Vec<AccessRoles>>user_account_status: Option<UserAccountStatus>accepted_latest_terms_and_conditions: Option<bool>

Whether this user has accepted latest terms and conditions or not

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.