Skip to main content

nil_payload/request/
report.rs

1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use bon::Builder;
5use nil_core::player::PlayerId;
6use nil_core::report::ReportKind;
7use nil_core::world::config::WorldId;
8use serde::{Deserialize, Serialize};
9
10#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
11#[serde(rename_all = "camelCase")]
12#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
13#[cfg_attr(feature = "typescript", ts(export))]
14pub struct ForwardReportRequest {
15  #[builder(start_fn, into)]
16  pub world: WorldId,
17  #[builder(into)]
18  pub recipient: PlayerId,
19  #[builder(into)]
20  pub report: ReportKind,
21}