1use num_derive::FromPrimitive;
9
10#[cfg_attr(test, allow(unused))]
11#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
12pub enum TestOneVariant {
13 Variant1 = 1,
14}
15
16#[cfg_attr(test, allow(unused))]
17#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
18pub enum TestOneVariantComma {
19 Variant1 = 1,
20}
21
22#[cfg_attr(test, allow(unused))]
23#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
24pub enum TestTwoVariants {
25 Variant1 = 1,
26 Variant2 = 2,
27}
28
29#[cfg_attr(test, allow(unused))]
30#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
31pub enum TestTwoVariantsComma {
32 Variant1 = 1,
33 Variant2 = 2,
34}
35
36#[cfg_attr(test, allow(unused))]
37#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
38pub enum BluetoothHFIndicator {
39 EnhancedSafety = 1,
40 BatteryLevel = 2,
41}
42
43#[cfg_attr(test, allow(unused))]
44#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
45pub enum NetworkOperatorNameFormat {
46 LongAlphanumeric = 0,
47}
48
49#[derive(Clone, Debug, PartialEq, Eq)]
50pub enum Command {
51 Testex {
52 },
53 Testexext {
54 },
55 TestCommand {
56 },
57 Testexextfi {
58 field: i64,
59 },
60 Testexextfic {
61 field: i64,
62 },
63 Testnsd {
64 field: i64,
65 },
66 Testnst {
67 field: i64,
68 },
69 Testnsdnst {
70 field: i64,
71 },
72 Testnod {
73 field: i64,
74 },
75 Testexextfs {
76 field: String,
77 },
78 Testexextfsi {
79 field1: String,
80 field2: i64,
81 },
82 Testexextfsic {
83 field1: String,
84 field2: i64,
85 },
86 Testio {
87 field1: i64,
88 field2: Option<i64>,
89 },
90 Testallopt {
91 field1: Option<i64>,
92 field2: Option<i64>,
93 field3: Option<i64>,
94 },
95 Testl {
96 field: Vec<i64>,
97 },
98 Testol {
99 field: Vec<Option<i64>>,
100 },
101 Testm {
102 field: std::collections::HashMap<i64,String>,
103 },
104 Testp {
105 field: i64,
106 },
107 Testpp {
108 field1: i64,
109 field2: i64,
110 field3: String,
111 },
112 Testpmpil {
113 field1: std::collections::HashMap<i64,String>,
114 field2: i64,
115 field3: Vec<i64>,
116 },
117 TestrRead {
118 },
119 TestrexRead {
120 },
121 TesttTest {
122 },
123 TesttexTest {
124 },
125 Testenum {
126 field: TestOneVariantComma,
127 },
128 Testbool {
129 field: bool,
130 },
131 Testotherfile {
132 },
133 Brsf {
134 features: i64,
135 },
136 CindTest {
137 },
138 CindRead {
139 },
140 Clcc {
141 },
142 Bcc {
143 },
144 Bcs {
145 codec: i64,
146 },
147 Bac {
148 codecs: Vec<i64>,
149 },
150 Bind {
151 indicators: Vec<i64>,
152 },
153 BindTest {
154 },
155 BindRead {
156 },
157 Biev {
158 anum: BluetoothHFIndicator,
159 value: i64,
160 },
161 ChldTest {
162 },
163 Cmer {
164 mode: Option<i64>,
165 keyp: Option<i64>,
166 disp: Option<i64>,
167 ind: Option<i64>,
168 },
169 Nrec {
170 nrec: bool,
171 },
172 Cops {
173 three: i64,
174 format: NetworkOperatorNameFormat,
175 },
176 CopsRead {
177 },
178 Cmee {
179 enable: bool,
180 },
181 Ccwa {
182 enable: bool,
183 },
184 Clip {
185 enable: bool,
186 },
187 Cnum {
188 },
189 Vts {
190 code: String,
191 },
192 Vgs {
193 level: i64,
194 },
195 Vgm {
196 level: i64,
197 },
198 Bia {
199 indrep: Vec<Option<bool>>,
200 },
201 Answer {
202 },
203 Chup {
204 },
205 Chld {
206 command: String,
207 },
208 AtdNumber {
209 number: String,
210 },
211 AtdMemory {
212 location: String,
213 },
214 Bldn {
215 },
216}
217
218#[derive(Clone, Debug, PartialEq, Eq)]
219pub enum Success {
220 Test {
221 },
222 Testnod {
223 },
224 TestResponse {
225 },
226 Testext {
227 },
228 Testextnod {
229 },
230 Testi {
231 field: i64,
232 },
233 Testinod {
234 field: i64,
235 },
236 Testic {
237 field: i64,
238 },
239 Tests {
240 field: String,
241 },
242 Testsi {
243 field1: String,
244 field2: i64,
245 },
246 Testsic {
247 field1: String,
248 field2: i64,
249 },
250 Testio {
251 field1: i64,
252 field2: Option<i64>,
253 },
254 Testioo {
255 field1: i64,
256 field2: Option<i64>,
257 field3: Option<String>,
258 },
259 Testl {
260 field: Vec<i64>,
261 },
262 Testol {
263 field: Vec<Option<i64>>,
264 },
265 Testm {
266 field: std::collections::HashMap<i64,String>,
267 },
268 Testp {
269 field: i64,
270 },
271 Testpp {
272 field1: i64,
273 field2: i64,
274 field3: String,
275 },
276 Testpmpil {
277 field1: std::collections::HashMap<i64,String>,
278 field2: i64,
279 field3: Vec<i64>,
280 },
281 SameOne {
282 field: i64,
283 },
284 SameTwo {
285 field: i64,
286 },
287 Brsf {
288 features: i64,
289 },
290 CindRead {
291 ordered_values: Vec<i64>,
292 },
293 Clcc {
294 index: i64,
295 direction: i64,
296 status: i64,
297 mode: i64,
298 multiparty: i64,
299 number: Option<String>,
300 ty: Option<i64>,
301 alpha: Option<String>,
302 priority: Option<i64>,
303 },
304 Bcs {
305 codec: i64,
306 },
307 BindList {
308 indicators: Vec<BluetoothHFIndicator>,
309 },
310 BindStatus {
311 anum: BluetoothHFIndicator,
312 state: bool,
313 },
314 Chld {
315 commands: Vec<String>,
316 },
317 Cops {
318 format: NetworkOperatorNameFormat,
319 zero: i64,
320 operator: String,
321 },
322 Clip {
323 number: String,
324 ty: i64,
325 },
326 Cnum {
327 alpha: String,
328 number: String,
329 ty: i64,
330 speed: String,
331 service: i64,
332 },
333 Vgs {
334 level: i64,
335 },
336 Vgm {
337 level: i64,
338 },
339 Ciev {
340 ind: i64,
341 value: i64,
342 },
343 Ccwa {
344 number: String,
345 ty: i64,
346 },
347 Ring {
348 },
349}
350