Skip to main content

icydb_model/base/types/
time.rs

1//! Module: base::types::time
2//!
3//! Responsibility: base domain type declarations.
4//! Does not own: runtime storage, query execution, or validator implementation internals.
5//! Boundary: declares macro-modeled domain wrappers and records for downstream schemas.
6
7use crate::prelude::*;
8
9///
10/// Milliseconds
11///
12/// Duration wrapper expressed in milliseconds.
13///
14
15#[newtype(item(prim = "Nat64"))]
16pub struct Milliseconds {}
17
18///
19/// Seconds
20///
21/// Duration wrapper expressed in seconds.
22///
23
24#[newtype(item(prim = "Nat64"))]
25pub struct Seconds {}
26
27///
28/// Minutes
29///
30/// Duration wrapper expressed in minutes.
31///
32
33#[newtype(item(prim = "Nat64"))]
34pub struct Minutes {}