icydb_model/base/types/
geo.rs1use crate::prelude::*;
8
9#[newtype(
18 source_key = "crates/icydb/src/base/types/geo.rs::newtype::1",
19 primitive = "Text",
20 item(prim = "Text", unbounded),
21 ty(
22 normalizer(path = "base::normalizer::text::Trim"),
23 validator(path = "base::validator::len::Range", args(1, 100)),
24 )
25)]
26pub struct AddressLine {}
27
28#[newtype(
38 source_key = "crates/icydb/src/base/types/geo.rs::newtype::2",
39 primitive = "Text",
40 item(prim = "Text", unbounded),
41 ty(
42 normalizer(path = "base::normalizer::text::Trim"),
43 normalizer(path = "base::normalizer::text::case::Title"),
44 validator(path = "base::validator::len::Range", args(1, 100)),
45 )
46)]
47pub struct CityName {}
48
49#[newtype(
59 source_key = "crates/icydb/src/base/types/geo.rs::newtype::3",
60 primitive = "Text",
61 item(prim = "Text", unbounded),
62 ty(
63 normalizer(path = "base::normalizer::text::Trim"),
64 normalizer(path = "base::normalizer::text::case::Upper"),
65 validator(path = "base::validator::len::Range", args(3, 12)),
66 )
67)]
68pub struct PostalCode {}
69
70#[newtype(
81 source_key = "crates/icydb/src/base/types/geo.rs::newtype::4",
82 primitive = "Text",
83 item(prim = "Text", unbounded),
84 ty(
85 normalizer(path = "base::normalizer::text::Trim"),
86 normalizer(path = "base::normalizer::text::case::Upper"),
87 validator(path = "base::validator::len::Range", args(2, 50)),
88 )
89)]
90pub struct RegionName {}