Add UserModifySchema

This commit is contained in:
bitfl0wer 2023-05-16 15:59:06 +02:00
parent a1397cf46f
commit 29318e9085
1 changed files with 15 additions and 0 deletions

View File

@ -299,6 +299,21 @@ pub struct GuildCreateSchema {
pub rules_channel_id: Option<String>, pub rules_channel_id: Option<String>,
} }
#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
pub struct UserModifySchema {
pub username: Option<String>,
pub avatar: Option<String>,
pub bio: Option<String>,
pub accent_color: Option<u64>,
pub banner: Option<String>,
pub current_password: Option<String>,
pub new_password: Option<String>,
pub code: Option<String>,
pub email: Option<String>,
pub discriminator: Option<i16>,
}
// I know that some of these tests are... really really basic and unneccessary, but sometimes, I // 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 // just feel like writing tests, so there you go :) -@bitfl0wer
#[cfg(test)] #[cfg(test)]