1+ impl super :: HasSchema for i8 {
2+ fn schema ( ) -> super :: Schema < Self > {
3+ super :: Schema {
4+ min_value : Some ( i8:: MIN ) ,
5+ max_value : Some ( i8:: MAX ) ,
6+ description : None ,
7+ example : Some ( 1 ) ,
8+ name : "signed 8-bits integer" . to_string ( ) ,
9+ kind : super :: SchemaKind :: Int ,
10+ }
11+ }
12+ }
13+
14+ impl super :: HasSchema for i16 {
15+ fn schema ( ) -> super :: Schema < Self > {
16+ super :: Schema {
17+ min_value : Some ( i16:: MIN ) ,
18+ max_value : Some ( i16:: MAX ) ,
19+ description : None ,
20+ example : Some ( 1 ) ,
21+ name : "signed 16-bits integer" . to_string ( ) ,
22+ kind : super :: SchemaKind :: Int ,
23+ }
24+ }
25+ }
26+
27+ impl super :: HasSchema for i32 {
28+ fn schema ( ) -> super :: Schema < Self > {
29+ super :: Schema {
30+ min_value : Some ( i32:: MIN ) ,
31+ max_value : Some ( i32:: MAX ) ,
32+ description : None ,
33+ example : Some ( 1 ) ,
34+ name : "signed 32-bits integer" . to_string ( ) ,
35+ kind : super :: SchemaKind :: Int ,
36+ }
37+ }
38+ }
39+
40+ impl super :: HasSchema for i64 {
41+ fn schema ( ) -> super :: Schema < Self > {
42+ super :: Schema {
43+ min_value : Some ( i64:: MIN ) ,
44+ max_value : Some ( i64:: MAX ) ,
45+ description : None ,
46+ example : Some ( 1 ) ,
47+ name : "signed 64-bits integer" . to_string ( ) ,
48+ kind : super :: SchemaKind :: Int ,
49+ }
50+ }
51+ }
52+
53+ impl super :: HasSchema for i128 {
54+ fn schema ( ) -> super :: Schema < Self > {
55+ super :: Schema {
56+ min_value : Some ( i128:: MIN ) ,
57+ max_value : Some ( i128:: MAX ) ,
58+ description : None ,
59+ example : Some ( 1 ) ,
60+ name : "signed 128-bits integer" . to_string ( ) ,
61+ kind : super :: SchemaKind :: Int ,
62+ }
63+ }
64+ }
65+
66+ impl super :: HasSchema for u8 {
67+ fn schema ( ) -> super :: Schema < Self > {
68+ super :: Schema {
69+ min_value : Some ( u8:: MIN ) ,
70+ max_value : Some ( u8:: MAX ) ,
71+ description : None ,
72+ example : Some ( 1 ) ,
73+ name : "unsigned 8-bits integer" . to_string ( ) ,
74+ kind : super :: SchemaKind :: Int ,
75+ }
76+ }
77+ }
78+
79+ impl super :: HasSchema for u16 {
80+ fn schema ( ) -> super :: Schema < Self > {
81+ super :: Schema {
82+ min_value : Some ( u16:: MIN ) ,
83+ max_value : Some ( u16:: MAX ) ,
84+ description : None ,
85+ example : Some ( 1 ) ,
86+ name : "unsigned 16-bits integer" . to_string ( ) ,
87+ kind : super :: SchemaKind :: Int ,
88+ }
89+ }
90+ }
91+
92+ impl super :: HasSchema for u32 {
93+ fn schema ( ) -> super :: Schema < Self > {
94+ super :: Schema {
95+ min_value : Some ( u32:: MIN ) ,
96+ max_value : Some ( u32:: MAX ) ,
97+ description : None ,
98+ example : Some ( 1 ) ,
99+ name : "unsigned 32-bits integer" . to_string ( ) ,
100+ kind : super :: SchemaKind :: Int ,
101+ }
102+ }
103+ }
104+
105+ impl super :: HasSchema for u64 {
106+ fn schema ( ) -> super :: Schema < Self > {
107+ super :: Schema {
108+ min_value : Some ( u64:: MIN ) ,
109+ max_value : Some ( u64:: MAX ) ,
110+ description : None ,
111+ example : Some ( 1 ) ,
112+ name : "unsigned 64-bits integer" . to_string ( ) ,
113+ kind : super :: SchemaKind :: Int ,
114+ }
115+ }
116+ }
117+
118+ impl super :: HasSchema for u128 {
119+ fn schema ( ) -> super :: Schema < Self > {
120+ super :: Schema {
121+ min_value : Some ( u128:: MIN ) ,
122+ max_value : Some ( u128:: MAX ) ,
123+ description : None ,
124+ example : Some ( 1 ) ,
125+ name : "unsigned 128-bits integer" . to_string ( ) ,
126+ kind : super :: SchemaKind :: Int ,
127+ }
128+ }
129+ }
0 commit comments