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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
//! [`ResponsibleOperator`] and its [`OperatorRole`].
use ;
/// Identifies an economic operator responsible for a DPP.
///
/// Under ESPR, the "responsible economic operator" is whoever places or
/// makes the product available on the EU market. This can be the original
/// manufacturer, an importer, a distributor, or a remanufacturer.
///
/// # Contact details
///
/// [`postal_address`](Self::postal_address),
/// [`electronic_address`](Self::electronic_address) and
/// [`registered_trade_name`](Self::registered_trade_name) exist because four
/// separate provisions require the same four-part shape of whoever is
/// answerable for a product, and confirmed against the verbatim OJ text they
/// are: **ESPR Art. 27(6)** (manufacturer) and **Art. 29(3)** (importer) —
/// "name, registered trade name or registered trade mark, postal address at
/// which, and electronic means of communication through which, they can be
/// contacted"; **Art. 4(4) of Regulation (EU) 2019/1020** — "the name,
/// registered trade name or registered trade mark, and contact details,
/// including the postal address"; and **Art. 16(3) of Regulation (EU)
/// 2023/988** — the same, "including the postal and electronic address".
///
/// **ESPR Annex III, point (k)** is what puts them in the passport: "the name,
/// contact details and unique operator identifier of the economic operator
/// established in the Union responsible for carrying out the tasks set out in
/// Article 4 of Regulation (EU) 2019/1020 or Article 15 of Regulation (EU)
/// 2023/988, or similar tasks pursuant to other Union law applicable to the
/// product". Contact details are never a free string in any of the four.
///
/// ⚠️ **That quote's "Article 15" is the Regulation's own cross-reference, and
/// it points at the wrong article** — Art. 15 of 2023/988 is *Cooperation of
/// economic operators with market surveillance authorities*; the
/// responsible-person provision is Art. 16. The quote is left exactly as
/// enacted, and
/// [`ResponsibilityBasis::GeneralProductSafety`](crate::operator::ResponsibilityBasis::GeneralProductSafety)
/// carries the explanation, including why it changes nothing in substance.
///
/// All three are `Option` because this type is a persisted shape — it is stored
/// inside the transfer chain — and the envelope rule is additive-only. `None`
/// means not stated, never "has none".
/// The role of an economic operator in the DPP supply chain.
///
/// Determines what DPP fields the operator may introduce or update,
/// as specified by the applicable delegated act.
///
/// # Wider than Art. 4(2), on purpose
///
/// **Art. 4(2) of Regulation (EU) 2019/1020** defines a closed set of four who
/// may be *the* responsible operator: a manufacturer established in the Union;
/// an importer, where the manufacturer is not; an authorised representative
/// with a written mandate; and a fulfilment service provider established in the
/// Union, where no other is. This enum holds those four and five more, because
/// it also describes who a passport can be *transferred to* — a remanufacturer
/// or a preparer for reuse takes over responsibility without being an Art. 4(2)
/// designation, and a distributor appears in the chain while never being able
/// to be the responsible operator at all.
///
/// [`ResponsibilityBasis`](super::ResponsibilityBasis) is what narrows the set
/// where the narrowing matters.