icydb_model/base/types/
ident.rs1use crate::prelude::*;
8
9#[newtype(
14 item(prim = "Text", unbounded),
15 ty(
16 rule(name = "length", length_range_inclusive(min = 1, max = 40)),
17 validator(path = "base::validator::text::case::UpperSnake"),
18 )
19)]
20pub struct Constant {}
21
22#[newtype(
27 item(prim = "Text", unbounded),
28 ty(
29 rule(name = "length", length_range_inclusive(min = 2, max = 40)),
30 validator(path = "base::validator::text::case::Snake"),
31 )
32)]
33pub struct Field {}
34
35#[newtype(
42 item(prim = "Text", unbounded),
43 ty(
44 rule(name = "length", length_range_inclusive(min = 2, max = 64)),
45 validator(path = "base::validator::text::case::Snake"),
46 )
47)]
48pub struct Function {}
49
50#[newtype(
55 item(prim = "Text", unbounded),
56 ty(
57 rule(name = "length", length_range_inclusive(min = 2, max = 40)),
58 validator(path = "base::validator::text::case::Snake"),
59 )
60)]
61pub struct Variable {}
62
63#[newtype(
68 item(prim = "Text", unbounded),
69 ty(
70 rule(name = "length", length_range_inclusive(min = 1, max = 40)),
71 validator(path = "base::validator::text::case::UpperCamel"),
72 )
73)]
74pub struct Variant {}