Skip to main content

icydb/base/types/
hash.rs

1use crate::design::prelude::*;
2
3///
4/// Sha256
5///
6/// Canonical SHA-256 digest text wrapper validated by the hash validator.
7///
8
9#[newtype(
10    primitive = "Text",
11    item(prim = "Text"),
12    ty(validator(path = "base::validator::hash::Sha256"))
13)]
14pub struct Sha256 {}