1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

use super::player::Player;

#[allow(non_snake_case)]
#[derive(Serialize, Deserialize, Debug)]
pub struct StatsJson {
    pub statsJson: Vec<Player>,
}

impl StatsJson {
    pub const fn new(players: Vec<Player>) -> StatsJson {
        StatsJson { statsJson: players }
    }
}