chesscom_openapi/models/inline_response_200_2.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 InlineResponse2002 {
16 /// Array of Daily Chess games where it is the player's turn to move
17 #[serde(rename = "games")]
18 pub games: Vec<crate::models::ToMoveGame>,
19}
20
21impl InlineResponse2002 {
22 pub fn new(games: Vec<crate::models::ToMoveGame>) -> InlineResponse2002 {
23 InlineResponse2002 {
24 games,
25 }
26 }
27}
28
29