diff options
Diffstat (limited to 'src/database/mod.rs')
-rw-r--r-- | src/database/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/database/mod.rs b/src/database/mod.rs index 884a597..045cf23 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -6,10 +6,12 @@ pub mod user; use serde::{Deserialize, Serialize}; use sqlx::mysql::{MySqlPool, MySqlPoolOptions}; +use utoipa::ToSchema; use std::env; -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, ToSchema)] pub struct Delete { + #[schema(example = "1", required = true)] pub id: Option<String>, } |