1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug)]
4pub struct User {
5 pub id: u32,
6 pub username: String,
7 pub date_joined: String,
8 pub email: String,
9 pub is_active: bool,
10 pub is_blocked: bool,
11 pub has_image: bool,
12 pub image_url: String,
13 pub currency_id: u32,
14 pub discount_value: u32,
15 pub is_reseller: bool,
16 pub twitch_id: u32,
17 pub twitch_login: String,
18}
19
20#[derive(Serialize, Deserialize, Debug)]
21pub struct Balance {
22 pub id: u32,
23 pub amount: u32,
24 pub currency_id: u32,
25 pub user_id: u32,
26 pub formatted_amount: u32,
27 pub currency: String,
28}