1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use *;
/*
#[derive(Debug, YaDeserialize)]
pub struct RecordItem {
#[yaserde(rename = "subindex", attribute)]
subindex: u8,
#[yaserde(rename = "bitOffset", attribute)]
bit_offset: u16,
#[yaserde(rename = "SimpleDatatype")]
datatype: SimpleDatatype,
#[yaserde(rename = "Name")]
name: Name,
}
impl Default for RecordItem {
fn default() -> Self {
// Define the logic to create a default RecordT instance
RecordItem {
subindex: 0,
bit_offset:0,
datatype: SimpleDatatype{ datatype:"".to_string(), bit_length:0},
name: Name{text_id: "".to_string()}
}
}
}
*/