From 4dc77e16263a701169b48187251dde7e375c9206 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 16 Feb 2022 18:40:32 +0100 Subject: add MatchState to ApiMatch --- planetwars-server/src/db_types.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'planetwars-server/src/db_types.rs') diff --git a/planetwars-server/src/db_types.rs b/planetwars-server/src/db_types.rs index d1225d7..1b99e49 100644 --- a/planetwars-server/src/db_types.rs +++ b/planetwars-server/src/db_types.rs @@ -1,6 +1,7 @@ use diesel_derive_enum::DbEnum; +use serde::{Deserialize, Serialize}; -#[derive(DbEnum, Debug, Clone, Copy, PartialEq, Eq, Hash)] +#[derive(DbEnum, Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Hash)] #[DieselType = "Match_state"] pub enum MatchState { -- cgit v1.2.3