Skip to main content

icydb_model/base/types/
hash.rs

1//! Module: base::types::hash
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/// Sha256
11///
12/// Canonical SHA-256 digest text wrapper validated by the hash validator.
13///
14
15#[newtype(
16    primitive = "Text",
17    item(prim = "Text", unbounded),
18    ty(validator(path = "base::validator::hash::Sha256"))
19)]
20pub struct Sha256 {}