#[non_exhaustive]pub enum RepairabilityIndexScope {
Covered,
NotCovered,
ExcludedRollableDisplay,
ExcludedHighSecurity,
}Expand description
Whether Reg. (EU) 2023/1669’s repairability index reaches a product.
Three outcomes rather than a bool. “This device type is outside the act”
and “this unit is carved out of it” are different sentences to put in front of
an operator, and they have different remedies — the first is never fixable,
the second is a declaration the operator made. Same reasoning as
PassportScope.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Covered
Art. 1 names this device type and no exclusion is declared.
NotCovered
Art. 1 does not name this device type — a cordless phone, or a mobile phone that is not a smartphone. In scope of 2023/1670, not of this act.
ExcludedRollableDisplay
Art. 1(a) — a flexible main display the user can unroll and roll up.
ExcludedHighSecurity
Art. 1(b) — a smartphone for high security communication.
Implementations§
Source§impl RepairabilityIndexScope
impl RepairabilityIndexScope
Sourcepub fn is_covered(self) -> bool
pub fn is_covered(self) -> bool
Whether an index is owed on the strength of this answer alone.
true only for Covered. A caller that needs to tell
why not apart must match the variant, which is why this is not an
Option<bool>.
Sourcepub fn is_declared_exclusion(self) -> bool
pub fn is_declared_exclusion(self) -> bool
Whether the answer rests on an exclusion the operator declared.
Exists so a caller can distinguish “the act never reached this” from “the act reaches this type and the operator says this unit is carved out” — the second is a claim that can be wrong, and the first cannot.