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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//! [`TrustServiceStatus`] — what a Member State says about one trust service.
use ;
/// The status a supervisory body has recorded for a listed trust service.
///
/// ETSI TS 119 612 clause 5.5.4 and Annex D.5. The values are URIs under
/// `http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/`.
///
/// # Why only two are named
///
/// The standard defines thirteen status URIs, and it would be easy to model all
/// thirteen as equals. They are not equals. Clause 5.5.4 says that for a service
/// of a type listed in clause 5.5.1.1 — which is every service type that confers
/// qualified status, including the ones this crate cares about — the status
/// **shall be either `granted` or `withdrawn`**. Nothing else is permitted
/// there.
///
/// The remaining eleven belong to other axes entirely: `recognisedatnationallevel`
/// and `deprecatedatnationallevel` are for nationally-defined services
/// (clauses 5.5.1.2 and 5.5.1.3), `setbynationallaw` is for national root CAs,
/// and `accredited` / `undersupervision` / `supervisionceased` and their
/// relatives are pre-eIDAS survivals from the Directive 1999/93/EC regime.
///
/// Folding those into the same enum as `granted` invites the reading that
/// `undersupervision` is a lesser kind of qualified, or that
/// `recognisedatnationallevel` is a weaker `granted`. Neither is true: they
/// answer a different question, asked of a different kind of service.
/// [`Self::Other`] keeps them readable without making them comparable.
/// `http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted`
pub const GRANTED_URI: &str = "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/granted";
/// `http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/withdrawn`
pub const WITHDRAWN_URI: &str = "http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/withdrawn";