From ff60853d0b5246a2349ec7f49a7c96064939631a Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sat, 15 Apr 2023 21:12:33 +0200 Subject: [PATCH] create RegisterSchema --- src/api/schemas.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/api/schemas.rs b/src/api/schemas.rs index a095a9f..16b9baa 100644 --- a/src/api/schemas.rs +++ b/src/api/schemas.rs @@ -1 +1,18 @@ -pub mod schemas {} \ No newline at end of file +pub mod schemas { + use serde::{Deserialize, Serialize}; + + #[derive(Debug, Serialize, Deserialize)] + #[serde(rename_all = "snake_case")] + pub struct RegisterSchema { + username: Option, + password: Option, + consent: Option, + email: Option, + fingerprint: Option, + invite: Option, + date_of_birth: Option, + gift_code_sku_id: Option, + captcha_key: Option, + promotional_email_opt_in: Option, + } +}