summaryrefslogtreecommitdiff
path: root/src/locations.rs
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-16 23:37:24 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-16 23:37:24 +0300
commitfa00c5863394c91a7b34680849908b1059e368f2 (patch)
treee357a7f322c644ce9487c4658e4a07ddb0e44611 /src/locations.rs
parentaf4680ee0577b28d0563ddc3d2677e8c96f4f5eb (diff)
feat: add openapi docs generation
Diffstat (limited to 'src/locations.rs')
-rw-r--r--src/locations.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/locations.rs b/src/locations.rs
index 5430753..7f54bb6 100644
--- a/src/locations.rs
+++ b/src/locations.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 Location {
pub id: i64,
pub latitude: f64,