From 776e61237601236fb1ad68f4047cca40263acf23 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 29 Aug 2024 11:01:01 +0200 Subject: Valid the polygon before the alert creation --- src/graphql/types/alert.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graphql/types') diff --git a/src/graphql/types/alert.rs b/src/graphql/types/alert.rs index 006e9ae..cede465 100644 --- a/src/graphql/types/alert.rs +++ b/src/graphql/types/alert.rs @@ -55,6 +55,11 @@ impl ToSql for LevelAlert { to_sql_checked!(); } +#[derive(Serialize, Deserialize)] +pub struct PolygonValid { + pub is_valid: bool, +} + #[derive(SimpleObject, Clone, Debug, Serialize, Deserialize)] /// Alert struct pub struct Alert { -- cgit v1.2.3-71-g8e6c