mod academy;
mod prefecture;
mod stable;
mod workshop;
use crate::client::Client;
use crate::error::Result;
use crate::http;
use nil_payload::infrastructure::*;
impl Client {
pub async fn toggle_building(&self, req: ToggleBuildingRequest) -> Result<()> {
http::post("toggle-building")
.body(req)
.server(self.server)
.maybe_authorization(self.authorization.as_ref())
.circuit_breaker(self.circuit_breaker())
.user_agent(&self.user_agent)
.send()
.await
}
}