use crate::prelude::*;
#[newtype(
item(prim = "Text", unbounded),
ty(
rule(name = "length", length_range_inclusive(min = 1, max = 40)),
validator(path = "base::validator::text::case::UpperSnake"),
)
)]
pub struct Constant {}
#[newtype(
item(prim = "Text", unbounded),
ty(
rule(name = "length", length_range_inclusive(min = 2, max = 40)),
validator(path = "base::validator::text::case::Snake"),
)
)]
pub struct Field {}
#[newtype(
item(prim = "Text", unbounded),
ty(
rule(name = "length", length_range_inclusive(min = 2, max = 64)),
validator(path = "base::validator::text::case::Snake"),
)
)]
pub struct Function {}
#[newtype(
item(prim = "Text", unbounded),
ty(
rule(name = "length", length_range_inclusive(min = 2, max = 40)),
validator(path = "base::validator::text::case::Snake"),
)
)]
pub struct Variable {}
#[newtype(
item(prim = "Text", unbounded),
ty(
rule(name = "length", length_range_inclusive(min = 1, max = 40)),
validator(path = "base::validator::text::case::UpperCamel"),
)
)]
pub struct Variant {}