Struct fractal_dto::v1::user::UserDTO[][src]

pub struct UserDTO {
    pub user_id: u64,
    pub username: String,
    pub display_name: String,
    pub email: String,
    pub email_confirmed: bool,
    pub first_name: Option<String>,
    pub first_name_confirmed: bool,
    pub last_name: Option<String>,
    pub last_name_confirmed: bool,
    pub device_count: u8,
    pub wallet_addresses: BTreeSet<WalletAddress>,
    pub pending_balance: Amount,
    pub checking_balance: Amount,
    pub cold_balance: Amount,
    pub birthday: Option<NaiveDate>,
    pub birthday_confirmed: bool,
    pub phone: Option<String>,
    pub phone_confirmed: bool,
    pub image_url: Option<String>,
    pub address: Option<Address>,
    pub address_confirmed: bool,
    pub sybil_score: i8,
    pub trust_score: i8,
    pub enabled: bool,
    pub registration_time: DateTime<UTC>,
    pub last_activity: DateTime<UTC>,
    pub banned: Option<DateTime<UTC>>,
}

The user date type object

Fields

The unique ID of the user

The unique username of the user

The display name of the user

The users email

/ Whether the email has been confirmed or not

The users first name

Whether the first name has been confirmed or not

The users last name

Whether the last name has been confirmed

The amount of devices the user has

The users wallet addresses

The users pending balance

The users checking balance

The users cold balance

The users birthday

Whether the birthday has been confirmed

The users phone #

Whether the users phone # has been confirmed

The users profile picture

The users address

Whether the address has been confirmed

The users sybil score

The users trust score

Whether the users account id disabled

When the user registered

The users last activity time

Whether the user is banned and until when

Trait Implementations

impl Encodable for UserDTO
[src]

Serialize a value using an Encoder.

impl Decodable for UserDTO
[src]

Deserialize a value using a Decoder.

impl DTO for UserDTO
[src]

Auto Trait Implementations

impl Send for UserDTO

impl Sync for UserDTO