nil_client/client/cheat/round.rs
1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use crate::client::Client;
5use crate::error::Result;
6use crate::http;
7use nil_payload::request::cheat::round::*;
8
9impl Client {
10 /// Endpoint: `POST /cheat-skip-round`
11 pub async fn cheat_skip_round(&self, req: CheatSkipRoundRequest) -> Result<()> {
12 http::post("cheat-skip-round")
13 .body(req)
14 .server(self.server)
15 .maybe_authorization(self.authorization.as_ref())
16 .circuit_breaker(self.circuit_breaker())
17 .user_agent(&self.user_agent)
18 .send()
19 .await
20 }
21}