chesscom_openapi/models/
chess_stats_tournament.rs

1/*
2 * Chess
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// Summary of tournaments participated in
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChessStatsTournament {
17    /// Number of tournaments joined
18    #[serde(rename = "count")]
19    pub count: i32,
20    /// Number of tournaments withdrawn from
21    #[serde(rename = "withdraw")]
22    pub withdraw: i32,
23    /// Total number of points earned in tournaments
24    #[serde(rename = "points")]
25    pub points: i32,
26    /// Best tournament place
27    #[serde(rename = "highest_finish")]
28    pub highest_finish: i32,
29}
30
31impl ChessStatsTournament {
32    /// Summary of tournaments participated in
33    pub fn new(count: i32, withdraw: i32, points: i32, highest_finish: i32) -> ChessStatsTournament {
34        ChessStatsTournament {
35            count,
36            withdraw,
37            points,
38            highest_finish,
39        }
40    }
41}
42
43