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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! A static description of each derived definition: its elements in wire
//! order, their formats, length rules and repetition counts.
//!
//! The derives generate it next to the parse and serialise code, from the
//! same field list and attributes, so it cannot drift from what the codec
//! does. It changes nothing on the wire. Uses: comparing the definitions
//! with other descriptions of FinTS, documentation and tooling.
//!
//! ```
//! use fints_client::codec::{self, ElementKind};
//!
//! let hksal = codec::lookup("HKSAL", 7).unwrap();
//! let account = &hksal.schema()[0];
//! assert_eq!(account.name, "account");
//! assert!(matches!(account.kind, ElementKind::Group { name: "Kti1", .. }));
//! assert_eq!((account.min_count, account.max_count), (1, Some(1)));
//! ```
/// One field of a segment or data element group, in wire order.
/// What a field holds.