Skip to main content

lichess_api/model/broadcasts/
get_round.rs

1use crate::model::Request;
2use serde::Serialize;
3
4#[derive(Default, Clone, Debug, Serialize)]
5pub struct GetQuery;
6
7pub type GetRequest = Request<GetQuery>;
8
9impl GetRequest {
10    pub fn new(
11        broadcast_tournament_slug: &str,
12        broadcast_round_slug: &str,
13        broadcast_round_id: &str,
14    ) -> Self {
15        Self::get(
16            format!(
17                "/api/broadcast/{broadcast_tournament_slug}/{broadcast_round_slug}/{broadcast_round_id}"
18            ),
19            None,
20            None,
21        )
22    }
23}