icydb_schema/unit.rs
1//! Module: types::unit
2//! Defines the zero-sized unit key/value wrapper used by schemas that need an
3//! explicit empty identity.
4
5use candid::CandidType;
6use serde::{Deserialize, Serialize};
7
8//
9// Unit
10//
11
12#[derive(
13 CandidType,
14 Clone,
15 Copy,
16 Debug,
17 Default,
18 Eq,
19 PartialEq,
20 Hash,
21 Ord,
22 PartialOrd,
23 Deserialize,
24 Serialize,
25)]
26pub struct Unit;