rust_cutil/cutil/
empty.rs

1use serde::{Deserialize, Serialize};
2use utoipa::ToSchema;
3
4#[derive(Debug, Serialize, Deserialize, Default, ToSchema)]
5pub struct Empty {}
6
7impl Empty {
8  pub fn new() -> Self {
9    Empty {}
10  }
11}
12
13const SHARED: Empty = Empty {};
14
15pub fn empty() -> Empty {
16  SHARED
17}