summaryrefslogtreecommitdiff
path: root/src/types/EncryptedPassportElement.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
committerGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
commitc70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch)
tree56183274b05a294e357bad4d06b523472a1c4a4a /src/types/EncryptedPassportElement.zig
downloadukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip
Initial commit
Diffstat (limited to 'src/types/EncryptedPassportElement.zig')
-rw-r--r--src/types/EncryptedPassportElement.zig30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/types/EncryptedPassportElement.zig b/src/types/EncryptedPassportElement.zig
new file mode 100644
index 0000000..ca0e2ed
--- /dev/null
+++ b/src/types/EncryptedPassportElement.zig
@@ -0,0 +1,30 @@
1// TODO: Turn this into a tagged union
2
3const PassportFile = @import("PassportFile.zig");
4
5pub const Type = enum {
6 personal_details,
7 passport,
8 driver_license,
9 identity_card,
10 internal_passport,
11 address,
12 utility_bill,
13 bank_statement,
14 rental_agreement,
15 passport_registration,
16 temporary_registration,
17 phone_number,
18 email,
19};
20
21type: Type,
22data: ?[]const u8,
23phone_number: ?[]const u8,
24email: ?[]const u8,
25files: ?[]PassportFile,
26front_side: ?PassportFile,
27reverse_side: ?PassportFile,
28selfie: ?PassportFile,
29translation: ?[]PassportFile,
30hash: []const u8,