Skip to main content

icydb_model/base/types/
lang.rs

1//! Module: base::types::lang
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/// Code
11/// ISO 639-1 standard language codes
12///
13
14#[newtype(
15    item(prim = "Text", unbounded),
16    ty(validator(path = "base::validator::intl::iso::Iso639_1"))
17)]
18pub struct Code {}
19
20///
21/// TESTS
22///
23
24#[cfg(test)]
25mod tests;