Skip to main content

nil_ffi/
request.rs

1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use serde::Serialize;
5use std::ffi::c_uint;
6
7#[cfg(feature = "typescript")]
8use ts_rs::TS;
9
10#[repr(transparent)]
11#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize)]
12#[cfg_attr(feature = "typescript", derive(TS))]
13#[cfg_attr(feature = "typescript", ts(export))]
14#[cfg_attr(feature = "typescript", ts(rename = "ffi_RequestId"))]
15pub struct RequestId(c_uint);