chesscom_openapi/models/inline_response_200_4.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
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct InlineResponse2004 {
16 /// List of Live and Daily Chess games that a player has finished
17 #[serde(rename = "games")]
18 pub games: Vec<crate::models::CompletedGame>,
19}
20
21impl InlineResponse2004 {
22 pub fn new(games: Vec<crate::models::CompletedGame>) -> InlineResponse2004 {
23 InlineResponse2004 {
24 games,
25 }
26 }
27}
28
29