diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-26 00:27:45 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-26 00:27:45 +0100 |
commit | e3f0f700bf2de3b8e7d7c72893a4d6cb128f000d (patch) | |
tree | a7262e9c07ebb0541b0a948cb215fe33ef0246c5 /src/database/artist.rs | |
parent | 57a2df34f4986f1f6062f22804021925afec0419 (diff) |
update
Diffstat (limited to 'src/database/artist.rs')
-rw-r--r-- | src/database/artist.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/artist.rs b/src/database/artist.rs index 018bc17..5dda7a8 100644 --- a/src/database/artist.rs +++ b/src/database/artist.rs @@ -1,10 +1,13 @@ use crate::database::DatabaseWrapper; use serde::{Deserialize, Serialize}; use sqlx::mysql::MySqlQueryResult; +use utoipa::ToSchema; -#[derive(Serialize)] +#[derive(Serialize, ToSchema)] pub struct Artist { + #[schema(example = "Attempt", required = true)] name: Option<String>, + #[schema(example = 3, required = true)] id: Option<i32>, } |