[][src]Struct em_client::models::User

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>,
}

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>

Implementations

impl User[src]

pub fn new(user_id: Uuid, user_email: String) -> User[src]

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

impl<'de> Deserialize<'de> for User[src]

impl PartialEq<User> for User[src]

impl Serialize for User[src]

impl StructuralPartialEq for User[src]

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any