Skip to main content

puddle_farm_api_client_openapi_client/models/
matchup_entry.rs

1/*
2 * puddle.farm API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MatchupEntry {
16    #[serde(rename = "char_name", skip_serializing_if = "Option::is_none")]
17    pub char_name: Option<String>,
18    #[serde(rename = "char_short", skip_serializing_if = "Option::is_none")]
19    pub char_short: Option<String>,
20    #[serde(rename = "wins", skip_serializing_if = "Option::is_none")]
21    pub wins: Option<i64>,
22    #[serde(rename = "total_games", skip_serializing_if = "Option::is_none")]
23    pub total_games: Option<i64>,
24}
25
26impl MatchupEntry {
27    pub fn new() -> MatchupEntry {
28        MatchupEntry {
29            char_name: None,
30            char_short: None,
31            wins: None,
32            total_games: None,
33        }
34    }
35}
36