lichess_api/model/games/export/
mod.rs1pub mod by_ids;
2pub mod by_user;
3pub mod one;
4pub mod ongoing;
5
6use serde::Serialize;
7
8#[serde_with::skip_serializing_none]
9#[derive(Clone, Debug, Serialize)]
10#[serde(rename_all = "camelCase")]
11pub struct Base {
12 pub moves: bool,
13 pub pgn_in_json: bool,
14 pub tags: bool,
15 pub clocks: bool,
16 pub evals: bool,
17 pub accuracy: bool,
18 pub opening: bool,
19 pub literate: bool,
20 pub players: Option<String>,
21}
22
23impl Default for Base {
24 fn default() -> Self {
25 Base {
26 moves: true,
27 pgn_in_json: false,
28 tags: true,
29 clocks: false,
30 evals: false,
31 accuracy: false,
32 opening: false,
33 literate: false,
34 players: None,
35 }
36 }
37}