summaryrefslogtreecommitdiffstats
path: root/src/client/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/types.rs')
-rw-r--r--src/client/types.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/client/types.rs b/src/client/types.rs
new file mode 100644
index 0000000..25f1226
--- /dev/null
+++ b/src/client/types.rs
@@ -0,0 +1,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,
+}