diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-16 18:40:32 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-16 18:40:32 +0100 |
commit | 4dc77e16263a701169b48187251dde7e375c9206 (patch) | |
tree | 85669b5ab2e798bb51f093cf5dcfea3f91dedeb6 /planetwars-server/src/db_types.rs | |
parent | ebd01757e8676c081b318e67283dd56089a7db6b (diff) | |
download | planetwars.dev-4dc77e16263a701169b48187251dde7e375c9206.tar.xz planetwars.dev-4dc77e16263a701169b48187251dde7e375c9206.zip |
add MatchState to ApiMatch
Diffstat (limited to 'planetwars-server/src/db_types.rs')
-rw-r--r-- | planetwars-server/src/db_types.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |