nil_payload/response/cheat/
player.rs1use derive_more::{Deref, DerefMut, From, Into};
5use nil_core::player::Player;
6use serde::{Deserialize, Serialize};
7
8#[cfg(feature = "axum")]
9use nil_payload_macros::IntoJsonResponse;
10
11#[cfg(feature = "typescript")]
12use ts_rs::TS;
13
14#[derive(Clone, Debug, Deref, DerefMut, From, Into, Deserialize, Serialize)]
15#[cfg_attr(feature = "axum", derive(IntoJsonResponse))]
16#[cfg_attr(feature = "typescript", derive(TS))]
17#[cfg_attr(feature = "typescript", ts(export))]
18pub struct CheatGetPlayerResponse(pub Player);
19
20#[derive(Clone, Debug, Deref, DerefMut, From, Into, Deserialize, Serialize)]
21#[cfg_attr(feature = "axum", derive(IntoJsonResponse))]
22#[cfg_attr(feature = "typescript", derive(TS))]
23#[cfg_attr(feature = "typescript", ts(export))]
24pub struct CheatGetPlayersResponse(pub Vec<Player>);