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