lichess_api/model/bulk_pairings/start_clocks.rs
1use crate::model::Request;
2use serde::Serialize;
3
4#[derive(Default, Clone, Debug, Serialize)]
5pub struct PostQuery;
6
7pub type PostRequest = Request<PostQuery>;
8
9impl PostRequest {
10 pub fn new(id: &str) -> Self {
11 Self::post(
12 format!("/api/bulk-pairing/{id}/start-clocks"),
13 None,
14 None,
15 None,
16 )
17 }
18}
19
20impl<S: AsRef<str>> From<S> for PostRequest {
21 fn from(id: S) -> Self {
22 Self::new(id.as_ref())
23 }
24}