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 source_key = "crates/icydb/src/base/types/hash.rs::newtype::1",
17 primitive = "Text",
18 item(prim = "Text", unbounded),
19 ty(validator(path = "base::validator::hash::Sha256"))
20)]
21pub struct Sha256 {}