1 2 3 4 5 6 7 8 9 10
use diesel_derive_enum::DbEnum; use serde::{Deserialize, Serialize}; #[derive(DbEnum, Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Hash)] #[DieselType = "Match_state"] pub enum MatchState { Playing, Finished, }