icydb_model/base/types/
ident.rs1use crate::prelude::*;
8
9#[newtype(
14 primitive = "Text",
15 item(prim = "Text", unbounded),
16 ty(
17 rule(name = "length", kind = "length_range_inclusive", args(1, 40)),
18 validator(path = "base::validator::text::case::UpperSnake"),
19 )
20)]
21pub struct Constant {}
22
23#[newtype(
28 primitive = "Text",
29 item(prim = "Text", unbounded),
30 ty(
31 rule(name = "length", kind = "length_range_inclusive", args(2, 40)),
32 validator(path = "base::validator::text::case::Snake"),
33 )
34)]
35pub struct Field {}
36
37#[newtype(
44 primitive = "Text",
45 item(prim = "Text", unbounded),
46 ty(
47 rule(name = "length", kind = "length_range_inclusive", args(2, 64)),
48 validator(path = "base::validator::text::case::Snake"),
49 )
50)]
51pub struct Function {}
52
53#[newtype(
58 primitive = "Text",
59 item(prim = "Text", unbounded),
60 ty(
61 rule(name = "length", kind = "length_range_inclusive", args(2, 40)),
62 validator(path = "base::validator::text::case::Snake"),
63 )
64)]
65pub struct Variable {}
66
67#[newtype(
72 primitive = "Text",
73 item(prim = "Text", unbounded),
74 ty(
75 rule(name = "length", kind = "length_range_inclusive", args(1, 40)),
76 validator(path = "base::validator::text::case::UpperCamel"),
77 )
78)]
79pub struct Variant {}