rust-cutil 1.0.250090502

cutil
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

#[derive(Debug, Serialize, Deserialize, Default, ToSchema)]
pub struct Empty {}

impl Empty {
  pub fn new() -> Self {
    Empty {}
  }
}

const SHARED: Empty = Empty {};

pub fn empty() -> Empty {
  SHARED
}