tetrio_api/http/parameters/
leaderboard_query.rs1pub enum LeaderboardType {
2 League,
4 Xp,
6 Ar
8}
9
10pub enum HistoricalLeaderboardType {
11 League
13}
14
15
16pub struct RecordLeaderboardQuery {
17
18}
19
20impl ToString for LeaderboardType {
21 fn to_string(&self) -> String {
22 match self {
23 Self::League => "league".to_string(),
24 Self::Xp => "xp".to_string(),
25 Self::Ar => "ar".to_string()
26 }
27 }
28}
29
30impl ToString for HistoricalLeaderboardType {
31 fn to_string(&self) -> String {
32 match self {
33 Self::League => "league".to_string(),
34 }
35 }
36}
37