summaryrefslogtreecommitdiffstats
path: root/src/client/types.rs
blob: 25f122699e343ad278c142891a9eca186422d075 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use serde_derive::{Deserialize, Serialize};
use serde_json::Value as JsonValue;

#[derive(Serialize, Deserialize, Debug, Default)]
pub struct User {
    id: i32,
    first_name: String,
    last_name: String,
    username: String,
    phone_number: String,
    status: JsonValue,
    profile_photo: JsonValue,
    is_contact: bool,
    is_mutual_contact: bool,
    is_verified: bool,
    is_support: bool,
    restriction_reason: String,
    is_scam: bool,
    have_access: bool,
    #[serde(rename = "type")]
    type_: JsonValue,
    language_code: String,
}