lichess_api/api/simuls.rs
1//! Simultaneous exhibitions: one host playing many opponents at once.
2//!
3//! Lists recently created, started, and finished simuls, matching what's shown
4//! on <https://lichess.org/simul>. The created/finished lists are not
5//! exhaustive — only simuls with a strong enough host are included. This
6//! endpoint is public, but when called with a bearer token the pending list is
7//! populated with the caller's own created-but-unstarted simuls.
8
9use crate::client::LichessApi;
10use crate::error::Result;
11use crate::model::simuls::*;
12
13impl LichessApi<reqwest::Client> {
14 pub async fn get_current_simuls(&self) -> Result<current::Simuls> {
15 self.get_single_model(current::GetRequest::new()).await
16 }
17}