chesscom_openapi/models/
chess_stats_last.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ChessStatsLast {
16 #[serde(rename = "rating")]
18 pub rating: i32,
19 #[serde(rename = "date")]
21 #[serde(with = "chrono::serde::ts_seconds")]
22 pub date: chrono::DateTime<chrono::Utc>,
23 #[serde(rename = "rd")]
25 pub rd: i32,
26}
27
28impl ChessStatsLast {
29 pub fn new(rating: i32, date: chrono::DateTime<chrono::Utc>, rd: i32) -> ChessStatsLast {
30 ChessStatsLast {
31 rating,
32 date,
33 rd,
34 }
35 }
36}
37
38