diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2024-08-29 09:01:01 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2024-08-29 09:01:01 +0000 |
| commit | 776e61237601236fb1ad68f4047cca40263acf23 (patch) | |
| tree | 176c168c84a21c66105cb54730c6d3da7c701d14 /src/graphql/types | |
| parent | a1f4c18afa3807d32e15966d89b201fd3f823ce2 (diff) | |
Valid the polygon before the alert creation
Diffstat (limited to 'src/graphql/types')
| -rw-r--r-- | src/graphql/types/alert.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |
