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