icydb 0.92.1

IcyDB — A schema-first typed query engine and persistence runtime for Internet Computer canisters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::design::prelude::*;

///
/// Utf8
///

#[newtype(
    primitive = "Blob",
    item(prim = "Blob"),
    traits(remove(ValidateCustom))
)]
pub struct Utf8;

impl ValidateCustom for Utf8 {
    fn validate_custom(&self, ctx: &mut dyn VisitorContext) {
        base::validator::bytes::Utf8.validate(self.0.as_slice(), ctx);
    }
}