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 bonds: HashMap<DateTime<UTC>, u64>,
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
user_id: u64
The unique ID of the user
username: String
The unique username of the user
display_name: String
The display name of the user
email: String
The users email
email_confirmed: bool
/ Whether the email has been confirmed or not
first_name: Option<String>
The users first name
first_name_confirmed: bool
Whether the first name has been confirmed or not
last_name: Option<String>
The users last name
last_name_confirmed: bool
Whether the last name has been confirmed
device_count: u8
The amount of devices the user has
wallet_addresses: BTreeSet<WalletAddress>
The users wallet addresses
pending_balance: Amount
The users pending balance
checking_balance: Amount
The users checking balance
cold_balance: Amount
The users cold balance
bonds: HashMap<DateTime<UTC>, u64>
The users bonds and when he purchased them
birthday: Option<NaiveDate>
The users birthday
birthday_confirmed: bool
Whether the birthday has been confirmed
phone: Option<String>
The users phone #
phone_confirmed: bool
Whether the users phone # has been confirmed
image_url: Option<String>
The users profile picture
address: Option<Address>
The users address
address_confirmed: bool
Whether the address has been confirmed
sybil_score: i8
The users sybil score
trust_score: i8
The users trust score
enabled: bool
Whether the users account id disabled
registration_time: DateTime<UTC>
When the user registered
last_activity: DateTime<UTC>
The users last activity time
banned: Option<DateTime<UTC>>
Whether the user is banned and until when
Trait Implementations
impl Encodable for UserDTO[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder.
impl Decodable for UserDTO[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<UserDTO, __D::Error>
Deserialize a value using a Decoder.