From af03fe896fc431dde2240a96ec5ac983e29be4ca Mon Sep 17 00:00:00 2001 From: Franklin Date: Sat, 15 Oct 2022 13:42:41 -0400 Subject: [PATCH] Added canceled leagueplayerstatus --- src/domain/enums/league_player_status.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/domain/enums/league_player_status.rs b/src/domain/enums/league_player_status.rs index 536f7d0..f24a0f9 100644 --- a/src/domain/enums/league_player_status.rs +++ b/src/domain/enums/league_player_status.rs @@ -5,13 +5,21 @@ use err::Error; #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default)] pub enum LeaguePlayerStatus { + /// The player requested to join but got denied by the league owner Denied, + /// The player joined either by getting accepted or by joining an open league Joined, + /// The player is requesting to join a league #[default] Requested, + /// The player was already in a league and was kicked out. + /// Can't request to join after this. Kicked, + /// The player exited the league queue (Exited before request being approved) Left, + /// Player was invited to join league Invited, + /// Player was already in a league and decided to canel (Only way to come back is through invites) Canceled, } impl Display for LeaguePlayerStatus {