at_commands/generated/
types.rs

1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file is generated code.  Please do not edit it; instead edit the AT
6// command definitions used to generate it.
7
8use 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    Testl {
91        field: Vec<i64>,
92    },
93    Testol {
94        field: Vec<Option<i64>>,
95    },
96    Testm {
97        field: std::collections::HashMap<i64,String>,
98    },
99    Testp {
100        field: i64,
101    },
102    Testpp {
103        field1: i64,
104        field2: i64,
105        field3: String,
106    },
107    Testpmpil {
108        field1: std::collections::HashMap<i64,String>,
109        field2: i64,
110        field3: Vec<i64>,
111    },
112    TestrRead {
113    },
114    TestrexRead {
115    },
116    TesttTest {
117    },
118    TesttexTest {
119    },
120    Testenum {
121        field: TestOneVariantComma,
122    },
123    Testbool {
124        field: bool,
125    },
126    Testotherfile {
127    },
128    Brsf {
129        features: i64,
130    },
131    CindTest {
132    },
133    CindRead {
134    },
135    Clcc {
136    },
137    Bcc {
138    },
139    Bcs {
140        codec: i64,
141    },
142    Bac {
143        codecs: Vec<i64>,
144    },
145    Bind {
146        indicators: Vec<i64>,
147    },
148    BindTest {
149    },
150    BindRead {
151    },
152    Biev {
153        anum: BluetoothHFIndicator,
154        value: i64,
155    },
156    ChldTest {
157    },
158    Cmer {
159        mode: i64,
160        keyp: i64,
161        disp: i64,
162        ind: i64,
163    },
164    Nrec {
165        nrec: bool,
166    },
167    Cops {
168        three: i64,
169        format: NetworkOperatorNameFormat,
170    },
171    CopsRead {
172    },
173    Cmee {
174        enable: bool,
175    },
176    Ccwa {
177        enable: bool,
178    },
179    Clip {
180        enable: bool,
181    },
182    Cnum {
183    },
184    Vts {
185        code: String,
186    },
187    Vgs {
188        level: i64,
189    },
190    Vgm {
191        level: i64,
192    },
193    Bia {
194        indrep: Vec<Option<bool>>,
195    },
196    Answer {
197    },
198    Chup {
199    },
200    Chld {
201        command: String,
202    },
203    AtdNumber {
204        number: String,
205    },
206    AtdMemory {
207        location: String,
208    },
209    Bldn {
210    },
211}
212
213#[derive(Clone, Debug, PartialEq, Eq)]
214pub enum Success {
215    Test {
216    },
217    Testnod {
218    },
219    TestResponse {
220    },
221    Testext {
222    },
223    Testextnod {
224    },
225    Testi {
226        field: i64,
227    },
228    Testinod {
229        field: i64,
230    },
231    Testic {
232        field: i64,
233    },
234    Tests {
235        field: String,
236    },
237    Testsi {
238        field1: String,
239        field2: i64,
240    },
241    Testsic {
242        field1: String,
243        field2: i64,
244    },
245    Testio {
246        field1: i64,
247        field2: Option<i64>,
248    },
249    Testioo {
250        field1: i64,
251        field2: Option<i64>,
252        field3: Option<String>,
253    },
254    Testl {
255        field: Vec<i64>,
256    },
257    Testol {
258        field: Vec<Option<i64>>,
259    },
260    Testm {
261        field: std::collections::HashMap<i64,String>,
262    },
263    Testp {
264        field: i64,
265    },
266    Testpp {
267        field1: i64,
268        field2: i64,
269        field3: String,
270    },
271    Testpmpil {
272        field1: std::collections::HashMap<i64,String>,
273        field2: i64,
274        field3: Vec<i64>,
275    },
276    SameOne {
277        field: i64,
278    },
279    SameTwo {
280        field: i64,
281    },
282    Brsf {
283        features: i64,
284    },
285    CindRead {
286        ordered_values: Vec<i64>,
287    },
288    Clcc {
289        index: i64,
290        dir: i64,
291        status: i64,
292        mode: i64,
293        mpty: i64,
294        number: Option<String>,
295        ty: Option<i64>,
296    },
297    Bcs {
298        codec: i64,
299    },
300    BindList {
301        indicators: Vec<BluetoothHFIndicator>,
302    },
303    BindStatus {
304        anum: BluetoothHFIndicator,
305        state: bool,
306    },
307    Chld {
308        commands: Vec<String>,
309    },
310    Cops {
311        format: NetworkOperatorNameFormat,
312        zero: i64,
313        operator: String,
314    },
315    Clip {
316        number: String,
317        ty: i64,
318    },
319    Cnum {
320        alpha: String,
321        number: String,
322        ty: i64,
323        speed: String,
324        service: i64,
325    },
326    Vgs {
327        level: i64,
328    },
329    Vgm {
330        level: i64,
331    },
332    Ciev {
333        ind: i64,
334        value: i64,
335    },
336    Ccwa {
337        number: String,
338        ty: i64,
339    },
340    Ring {
341    },
342}
343