From 29318e908551fcdbf3e27405661fc2503069fe17 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Tue, 16 May 2023 15:59:06 +0200 Subject: [PATCH] Add UserModifySchema --- src/api/schemas.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/api/schemas.rs b/src/api/schemas.rs index 1fd0e76..e84abdf 100644 --- a/src/api/schemas.rs +++ b/src/api/schemas.rs @@ -299,6 +299,21 @@ pub struct GuildCreateSchema { pub rules_channel_id: Option, } +#[derive(Debug, Deserialize, Serialize)] +#[serde(rename_all = "snake_case")] +pub struct UserModifySchema { + pub username: Option, + pub avatar: Option, + pub bio: Option, + pub accent_color: Option, + pub banner: Option, + pub current_password: Option, + pub new_password: Option, + pub code: Option, + pub email: Option, + pub discriminator: Option, +} + // I know that some of these tests are... really really basic and unneccessary, but sometimes, I // just feel like writing tests, so there you go :) -@bitfl0wer #[cfg(test)]