use num_derive::FromPrimitive;
#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
pub enum TestOneVariant {
Variant1 = 1,
}
#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
pub enum TestOneVariantComma {
Variant1 = 1,
}
#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
pub enum TestTwoVariants {
Variant1 = 1,
Variant2 = 2,
}
#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
pub enum TestTwoVariantsComma {
Variant1 = 1,
Variant2 = 2,
}
#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
pub enum BluetoothHFIndicator {
EnhancedSafety = 1,
BatteryLevel = 2,
}
#[derive(Copy, Clone, Debug, FromPrimitive, PartialEq, Eq)]
pub enum NetworkOperatorNameFormat {
LongAlphanumeric = 0,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Command {
Testex {
},
Testexext {
},
TestCommand {
},
Testexextfi {
field: i64,
},
Testexextfic {
field: i64,
},
Testnsd {
field: i64,
},
Testnst {
field: i64,
},
Testnsdnst {
field: i64,
},
Testnod {
field: i64,
},
Testexextfs {
field: String,
},
Testexextfsi {
field1: String,
field2: i64,
},
Testexextfsic {
field1: String,
field2: i64,
},
Testio {
field1: i64,
field2: Option<i64>,
},
Testl {
field: Vec<i64>,
},
Testol {
field: Vec<Option<i64>>,
},
Testm {
field: std::collections::HashMap<i64,String>,
},
Testp {
field: i64,
},
Testpp {
field1: i64,
field2: i64,
field3: String,
},
Testpmpil {
field1: std::collections::HashMap<i64,String>,
field2: i64,
field3: Vec<i64>,
},
TestrRead {
},
TestrexRead {
},
TesttTest {
},
TesttexTest {
},
Testenum {
field: TestOneVariantComma,
},
Testbool {
field: bool,
},
Testotherfile {
},
Brsf {
features: i64,
},
CindTest {
},
CindRead {
},
Clcc {
},
Bcc {
},
Bcs {
codec: i64,
},
Bac {
codecs: Vec<i64>,
},
Bind {
indicators: Vec<i64>,
},
BindTest {
},
BindRead {
},
Biev {
anum: BluetoothHFIndicator,
value: i64,
},
ChldTest {
},
Cmer {
mode: i64,
keyp: i64,
disp: i64,
ind: i64,
},
Nrec {
nrec: bool,
},
Cops {
three: i64,
format: NetworkOperatorNameFormat,
},
CopsRead {
},
Cmee {
enable: bool,
},
Ccwa {
enable: bool,
},
Clip {
enable: bool,
},
Cnum {
},
Vts {
code: String,
},
Vgs {
level: i64,
},
Vgm {
level: i64,
},
Bia {
indrep: Vec<Option<bool>>,
},
Answer {
},
Chup {
},
Chld {
command: String,
},
AtdNumber {
number: String,
},
AtdMemory {
location: String,
},
Bldn {
},
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Success {
Test {
},
Testnod {
},
TestResponse {
},
Testext {
},
Testextnod {
},
Testi {
field: i64,
},
Testinod {
field: i64,
},
Testic {
field: i64,
},
Tests {
field: String,
},
Testsi {
field1: String,
field2: i64,
},
Testsic {
field1: String,
field2: i64,
},
Testio {
field1: i64,
field2: Option<i64>,
},
Testl {
field: Vec<i64>,
},
Testol {
field: Vec<Option<i64>>,
},
Testm {
field: std::collections::HashMap<i64,String>,
},
Testp {
field: i64,
},
Testpp {
field1: i64,
field2: i64,
field3: String,
},
Testpmpil {
field1: std::collections::HashMap<i64,String>,
field2: i64,
field3: Vec<i64>,
},
SameOne {
field: i64,
},
SameTwo {
field: i64,
},
Brsf {
features: i64,
},
Cind {
service: bool,
call: bool,
callsetup: i64,
callheld: i64,
signal: i64,
roam: bool,
battchg: i64,
},
Clcc {
index: i64,
dir: i64,
status: i64,
mode: i64,
mpty: i64,
number: String,
ty: i64,
},
Bcs {
codec: i64,
},
BindList {
indicators: Vec<BluetoothHFIndicator>,
},
BindStatus {
anum: BluetoothHFIndicator,
state: bool,
},
Chld {
commands: Vec<String>,
},
Cops {
format: NetworkOperatorNameFormat,
zero: i64,
operator: String,
},
Clip {
number: String,
ty: i64,
},
Cnum {
alpha: String,
number: String,
ty: i64,
speed: String,
service: i64,
},
Vgs {
level: i64,
},
Vgm {
level: i64,
},
Ciev {
ind: i64,
value: i64,
},
Ccwa {
number: String,
ty: i64,
},
Ring {
},
}