nil_client/client/cheat/
city.rs1use crate::client::Client;
5use crate::error::Result;
6use crate::http;
7use nil_payload::request::cheat::city::*;
8
9impl Client {
10 pub async fn cheat_set_stability(&self, req: CheatSetStabilityRequest) -> Result<()> {
11 http::post("cheat-set-stability")
12 .body(req)
13 .server(self.server)
14 .maybe_authorization(self.authorization.as_ref())
15 .circuit_breaker(self.circuit_breaker())
16 .user_agent(&self.user_agent)
17 .send()
18 .await
19 }
20
21 pub async fn cheat_spawn_city(&self, req: CheatSpawnCityRequest) -> Result<()> {
22 http::post("cheat-spawn-city")
23 .body(req)
24 .server(self.server)
25 .maybe_authorization(self.authorization.as_ref())
26 .circuit_breaker(self.circuit_breaker())
27 .user_agent(&self.user_agent)
28 .send()
29 .await
30 }
31}