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#[repr(transparent)]
8#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize)]
9#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
10#[cfg_attr(feature = "typescript", ts(export))]
11#[cfg_attr(feature = "typescript", ts(rename = "ffi_RequestId"))]
12pub struct RequestId(c_uint);