diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-16 23:37:24 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-16 23:37:24 +0300 |
| commit | fa00c5863394c91a7b34680849908b1059e368f2 (patch) | |
| tree | e357a7f322c644ce9487c4658e4a07ddb0e44611 /src/notifications.rs | |
| parent | af4680ee0577b28d0563ddc3d2677e8c96f4f5eb (diff) | |
feat: add openapi docs generation
Diffstat (limited to 'src/notifications.rs')
| -rw-r--r-- | src/notifications.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/notifications.rs b/src/notifications.rs index 2dad552..9891b5e 100644 --- a/src/notifications.rs +++ b/src/notifications.rs @@ -1,7 +1,8 @@ use serde::{Deserialize, Serialize}; use sqlx::FromRow; +use utoipa::ToSchema; -#[derive(Debug, Serialize, Deserialize, FromRow, Clone, PartialEq)] +#[derive(Debug, Serialize, Deserialize, FromRow, Clone, PartialEq, ToSchema)] pub struct NtfySettings { pub id: i64, pub user_id: i64, @@ -23,7 +24,7 @@ pub struct NtfySettingsInput { pub message_template: Option<String>, } -#[derive(Debug, Serialize, Deserialize, FromRow, Clone, PartialEq)] +#[derive(Debug, Serialize, Deserialize, FromRow, Clone, PartialEq, ToSchema)] pub struct SmtpSettings { pub id: i64, pub user_id: i64, |
