Skip to main content

nil_client/client/cheat/
behavior.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::behavior::*;
8use nil_payload::response::cheat::behavior::*;
9
10impl Client {
11  /// Endpoint: `PUT /cheat-get-build-steps`
12  pub async fn cheat_get_build_steps(
13    &self,
14    req: CheatGetBuildStepsRequest,
15  ) -> Result<CheatGetBuildStepsResponse> {
16    http::json_put("cheat-get-build-steps")
17      .body(req)
18      .server(self.server)
19      .maybe_authorization(self.authorization.as_ref())
20      .circuit_breaker(self.circuit_breaker())
21      .retry(&self.retry)
22      .user_agent(&self.user_agent)
23      .send()
24      .await
25  }
26}