Skip to main content

lichess_api/model/bulk_pairings/
mod.rs

1pub mod create;
2pub mod games;
3pub mod list;
4pub mod remove;
5pub mod show;
6pub mod start_clocks;
7
8use crate::model::{ArenaClock, VariantKey};
9use serde::{Deserialize, Serialize};
10
11#[derive(Clone, Debug, Deserialize, Serialize)]
12#[serde(rename_all = "camelCase")]
13pub struct BulkPairing {
14    pub id: String,
15    pub games: Vec<BulkPairingGame>,
16    pub variant: VariantKey,
17    pub clock: ArenaClock,
18    pub pair_at: i64,
19    pub paired_at: Option<i64>,
20    pub rated: bool,
21    pub start_clocks_at: i64,
22    pub scheduled_at: i64,
23}
24
25#[derive(Clone, Debug, Deserialize, Serialize)]
26pub struct BulkPairingGame {
27    pub id: String,
28    pub black: String,
29    pub white: String,
30}