Skip to main content

icydb_model/base/types/
web.rs

1//! Module: base::types::web
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/// MimeType
11///
12/// MIME type text wrapper normalized and validated by web base rules.
13///
14
15#[newtype(
16    source_key = "crates/icydb/src/base/types/web.rs::newtype::1",
17    primitive = "Text",
18    item(prim = "Text", unbounded),
19    ty(
20        normalizer(path = "base::normalizer::web::MimeType"),
21        validator(path = "base::validator::web::MimeType"),
22    )
23)]
24pub struct MimeType {}
25
26///
27/// Url
28///
29/// URL text wrapper normalized and validated by web base rules.
30///
31
32#[newtype(
33    source_key = "crates/icydb/src/base/types/web.rs::newtype::2",
34    primitive = "Text",
35    item(prim = "Text", unbounded),
36    ty(
37        normalizer(path = "base::normalizer::web::Url"),
38        validator(path = "base::validator::web::Url"),
39    )
40)]
41pub struct Url {}