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
60
61
62
63
64
65
66
67
68
//! XML: reading and writing the four S/PRI payloads.
//!
//! Source: XSD 4.00.03 (`oss-envelope.xsd`, `oss-order.xsd`, `oss-message.xsd`,
//! `oss-product-FTTx.xsd`, `oss-type-complex.xsd`). No schema sets `elementFormDefault`, so
//! only the four payload elements are namespace-qualified; every element inside them is
//! unqualified. Abstract types carry `xsi:type`: the business case (`geschaeftsfall`), the
//! product (`produkt`), the FTTx product data (`geschaeftsfallProdukt`), the message
//! (`meldungstyp`) and the position attributes (`positionsattribute`).
//!
//! Attachments (`inhalt`, `xsd:base64Binary`) are bounded by [`Limits::max_attachment`]; the
//! S/PRI documents name no size, so the bound is this library's (1 MiB by default, see
//! [`default_limits`]).
pub use ;
pub use ;
pub const NS_ENVELOPE: &str = "http://spri.telekom.de/oss/v4/envelope";
pub const NS_ORDER: &str = "http://spri.telekom.de/oss/v4/order";
pub const NS_MESSAGE: &str = "http://spri.telekom.de/oss/v4/message";
pub const NS_FTTX: &str = "http://spri.telekom.de/oss/v4/fttx";
/// The largest attachment [`default_limits`] admits: 1 MiB after decoding.
pub const MAX_ANLAGE_BYTES: usize = 1 << 20;
/// The limits [`crate::Payload::from_xml`] applies: [`Limits::default`] plus room for one
/// attachment of [`MAX_ANLAGE_BYTES`] in base64.
pub const
/// Repetition bounds. The schema leaves most lists unbounded; the reader's element limit
/// bounds them then.
pub
/// `xsi:type` names of the concrete types.
pub
/// The `xsi:type` of a message type, e.g. `MeldungstypZWM-LEType`.
pub