chesscom-openapi 0.1.1

OpenAPI-generated API client bindings for Chess.com
Documentation
/*
 * Chess
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct InlineResponse2004 {
    /// List of Live and Daily Chess games that a player has finished
    #[serde(rename = "games")]
    pub games: Vec<crate::models::CompletedGame>,
}

impl InlineResponse2004 {
    pub fn new(games: Vec<crate::models::CompletedGame>) -> InlineResponse2004 {
        InlineResponse2004 {
            games,
        }
    }
}