lichess_api/api/
tablebase.rs1use crate::client::LichessApi;
2use crate::error::Result;
3use crate::model::tablebase::*;
4
5impl LichessApi<reqwest::Client> {
6 pub async fn lookup_antichess(
7 &self,
8 request: impl Into<antichess::GetRequest>,
9 ) -> Result<TablebaseJson> {
10 self.get_single_model(request.into()).await
11 }
12
13 pub async fn lookup_atomic(
14 &self,
15 request: impl Into<atomic::GetRequest>,
16 ) -> Result<TablebaseJson> {
17 self.get_single_model(request.into()).await
18 }
19
20 pub async fn lookup_standard(
21 &self,
22 request: impl Into<standard::GetRequest>,
23 ) -> Result<TablebaseJson> {
24 self.get_single_model(request.into()).await
25 }
26}