nil_payload/request/infrastructure/
stable.rs1use nil_core::continent::Coord;
5use nil_core::infrastructure::building::r#impl::stable::recruit_queue::{
6 StableRecruitOrderId,
7 StableRecruitOrderRequest,
8};
9use nil_core::world::config::WorldId;
10use serde::{Deserialize, Serialize};
11
12#[cfg(feature = "typescript")]
13use ts_rs::TS;
14
15#[derive(Clone, Debug, Deserialize, Serialize)]
16#[serde(rename_all = "camelCase")]
17#[cfg_attr(feature = "typescript", derive(TS))]
18#[cfg_attr(feature = "typescript", ts(export))]
19pub struct AddStableRecruitOrderRequest {
20 pub world: WorldId,
21 pub request: StableRecruitOrderRequest,
22}
23
24#[derive(Clone, Debug, Deserialize, Serialize)]
25#[serde(rename_all = "camelCase")]
26#[cfg_attr(feature = "typescript", derive(TS))]
27#[cfg_attr(feature = "typescript", ts(export))]
28pub struct CancelStableRecruitOrderRequest {
29 pub world: WorldId,
30 pub coord: Coord,
31 pub id: StableRecruitOrderId,
32}
33
34#[derive(Clone, Debug, Deserialize, Serialize)]
35#[serde(rename_all = "camelCase")]
36#[cfg_attr(feature = "typescript", derive(TS))]
37#[cfg_attr(feature = "typescript", ts(export))]
38pub struct GetStableRecruitCatalogRequest {
39 pub world: WorldId,
40 pub coord: Coord,
41}