diff options
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>, } |