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