Added canceled leagueplayerstatus
This commit is contained in:
parent
92a81ae070
commit
af03fe896f
|
@ -5,13 +5,21 @@ use err::Error;
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default)]
|
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default)]
|
||||||
pub enum LeaguePlayerStatus {
|
pub enum LeaguePlayerStatus {
|
||||||
|
/// The player requested to join but got denied by the league owner
|
||||||
Denied,
|
Denied,
|
||||||
|
/// The player joined either by getting accepted or by joining an open league
|
||||||
Joined,
|
Joined,
|
||||||
|
/// The player is requesting to join a league
|
||||||
#[default]
|
#[default]
|
||||||
Requested,
|
Requested,
|
||||||
|
/// The player was already in a league and was kicked out.
|
||||||
|
/// Can't request to join after this.
|
||||||
Kicked,
|
Kicked,
|
||||||
|
/// The player exited the league queue (Exited before request being approved)
|
||||||
Left,
|
Left,
|
||||||
|
/// Player was invited to join league
|
||||||
Invited,
|
Invited,
|
||||||
|
/// Player was already in a league and decided to canel (Only way to come back is through invites)
|
||||||
Canceled,
|
Canceled,
|
||||||
}
|
}
|
||||||
impl Display for LeaguePlayerStatus {
|
impl Display for LeaguePlayerStatus {
|
||||||
|
|
Loading…
Reference in New Issue