summaryrefslogtreecommitdiffstats
path: root/src/client/types.rs
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2021-01-08 23:51:31 +0300
committersyn <isaqtm@gmail.com>2021-01-08 23:51:31 +0300
commite147d7a7a1f581d0ada19077cc22f23fda8a8cb4 (patch)
treeb712e81054c4c00d0484246bb8043e7243aa0f50 /src/client/types.rs
parent84e9ac248dadcbbe9cf21a2fe3020005f96b4ec0 (diff)
downloadtdlib-rs-e147d7a7a1f581d0ada19077cc22f23fda8a8cb4.tar.gz
[wip] some support for telegram methods & types
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,
+}