From fa00c5863394c91a7b34680849908b1059e368f2 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Wed, 16 Jul 2025 23:37:24 +0300 Subject: feat: add openapi docs generation --- src/notifications.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/notifications.rs') 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, } -#[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, -- cgit v1.2.3