icydb_model/base/types/
ident.rs1use crate::prelude::*;
8
9#[newtype(
14 source_key = "crates/icydb/src/base/types/ident.rs::newtype::1",
15 primitive = "Text",
16 item(prim = "Text", unbounded),
17 ty(
18 validator(path = "base::validator::len::Range", args(1, 40)),
19 validator(path = "base::validator::text::case::UpperSnake"),
20 )
21)]
22pub struct Constant {}
23
24#[newtype(
29 source_key = "crates/icydb/src/base/types/ident.rs::newtype::2",
30 primitive = "Text",
31 item(prim = "Text", unbounded),
32 ty(
33 validator(path = "base::validator::len::Range", args(2, 40)),
34 validator(path = "base::validator::text::case::Snake"),
35 )
36)]
37pub struct Field {}
38
39#[newtype(
46 source_key = "crates/icydb/src/base/types/ident.rs::newtype::3",
47 primitive = "Text",
48 item(prim = "Text", unbounded),
49 ty(
50 validator(path = "base::validator::len::Range", args(2, 64)),
51 validator(path = "base::validator::text::case::Snake"),
52 )
53)]
54pub struct Function {}
55
56#[newtype(
61 source_key = "crates/icydb/src/base/types/ident.rs::newtype::4",
62 primitive = "Text",
63 item(prim = "Text", unbounded),
64 ty(
65 validator(path = "base::validator::len::Range", args(2, 40)),
66 validator(path = "base::validator::text::case::Snake"),
67 )
68)]
69pub struct Variable {}
70
71#[newtype(
76 source_key = "crates/icydb/src/base/types/ident.rs::newtype::5",
77 primitive = "Text",
78 item(prim = "Text", unbounded),
79 ty(
80 validator(path = "base::validator::len::Range", args(1, 40)),
81 validator(path = "base::validator::text::case::UpperCamel"),
82 )
83)]
84pub struct Variant {}