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