1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct PlayerStats {
#[serde(rename = "chess_daily", skip_serializing_if = "Option::is_none")]
pub chess_daily: Option<crate::models::ChessStats>,
#[serde(rename = "chess_rapid", skip_serializing_if = "Option::is_none")]
pub chess_rapid: Option<crate::models::ChessStats>,
#[serde(rename = "chess_blitz", skip_serializing_if = "Option::is_none")]
pub chess_blitz: Option<crate::models::ChessStats>,
#[serde(rename = "chess_bullet", skip_serializing_if = "Option::is_none")]
pub chess_bullet: Option<crate::models::ChessStats>,
#[serde(rename = "chess960_daily", skip_serializing_if = "Option::is_none")]
pub chess960_daily: Option<crate::models::ChessStats>,
#[serde(rename = "chess960_rapid", skip_serializing_if = "Option::is_none")]
pub chess960_rapid: Option<crate::models::ChessStats>,
#[serde(rename = "chess960_blitz", skip_serializing_if = "Option::is_none")]
pub chess960_blitz: Option<crate::models::ChessStats>,
#[serde(rename = "chess960_bullet", skip_serializing_if = "Option::is_none")]
pub chess960_bullet: Option<crate::models::ChessStats>,
#[serde(rename = "tactics", skip_serializing_if = "Option::is_none")]
pub tactics: Option<crate::models::TacticsStats>,
#[serde(rename = "lessons", skip_serializing_if = "Option::is_none")]
pub lessons: Option<crate::models::LessonsStats>,
#[serde(rename = "puzzle_rush", skip_serializing_if = "Option::is_none")]
pub puzzle_rush: Option<crate::models::PuzzleRushStats>,
}
impl PlayerStats {
pub fn new() -> PlayerStats {
PlayerStats {
chess_daily: None,
chess_rapid: None,
chess_blitz: None,
chess_bullet: None,
chess960_daily: None,
chess960_rapid: None,
chess960_blitz: None,
chess960_bullet: None,
tactics: None,
lessons: None,
puzzle_rush: None,
}
}
}