Skip to main content

InstrumentBinding

Struct InstrumentBinding 

Source
pub struct InstrumentBinding {
    pub product_group: String,
    pub status: RegulatoryStatus,
    pub legal_basis: Vec<String>,
    pub passport: Option<PassportObligation>,
    pub retention_years: Option<u32>,
    pub retention_years_basis: Option<RetentionBasis>,
    pub granularity: Option<Granularity>,
    pub notes: Option<String>,
}
Expand description

One instrument’s reach into one product group, and the terms on which it reaches it.

§Why the law lives here and not on the product group

A product group’s status, legalBasis, passport date and retention period used to be scalars on its own record, which asserts that exactly one act governs it. ESPR Art. 5(7) says otherwise: a group-specific delegated act may supplement a horizontal one, and no precedence rule exists anywhere in the Regulation, so overlapping acts accumulate. Every one of those scalars is therefore a property of an (instrument, product group) pair.

Concretely: a group is routinely in force under one instrument and provisional under another, and a single boolean must then either assert against an unadopted act or stay silent about an adopted one.

§Why bindings are held instrument-side

A binding is stored in the manifest of the instrument, listing the groups it reaches — not in each group’s manifest listing its instruments. Two reasons, the second decisive:

  1. A horizontal act’s coverage is a property of that act and moves as one unit. Group-side, widening one act’s scope means editing every group’s manifest.
  2. A horizontal act can reach a product group that has no manifest of its own — the Commission’s preparatory analysis says so explicitly, naming light means of transport as a set covered by a horizontal requirement while never being shortlisted as a product group. Group-side, that case cannot be written down at all.

So product_group is a free-form key and is not required to exist in the product-group catalog. Resolving it is the caller’s business; the record of what an act reaches must not be lost merely because we hold no schema for the thing reached.

Fields§

§product_group: String

Product-group key this instrument reaches. Not validated against the product-group catalog — see the type docs.

§status: RegulatoryStatus

Whether this instrument’s obligations bind this group now, gating binding determinations made under this instrument.

§legal_basis: Vec<String>

The specific provisions this binding rests on, e.g. ["Regulation (EU) 2023/1542 Art. 77(1)"]. Article-level, because the binding is article-level: the act as a whole is Instrument::celex.

§passport: Option<PassportObligation>

Passport obligation scoped to this group, overriding the instrument’s own where an act treats its groups differently. None inherits.

§retention_years: Option<u32>

Retention period this instrument imposes on this group, in years. None inherits the instrument’s.

§retention_years_basis: Option<RetentionBasis>

Whether Self::retention_years traces to an adopted text.

§granularity: Option<Granularity>

The level this instrument fixes for this group. None inherits the instrument’s, which is itself None where no act has fixed one.

§notes: Option<String>

Scope, caveats, and the citation behind any date or figure above.

Implementations§

Source§

impl InstrumentBinding

Source

pub fn allows_determination(&self) -> bool

Whether a binding compliance determination may be made under this instrument for this product group.

This is the same question RegulatoryStatus::allows_determination has always answered, moved to the altitude where it is answerable. It is not the question of whether a passport is required — see Self::requires_passport. Keeping them apart matters in both directions:

  • ESPR’s unsold-goods duties bind today and are determinable, yet impose no passport; and
  • an adjacent act’s ecodesign duties bind today while its passport is discharged through another system entirely.

Reading one as the other in the second case is how a passport obligation that does not exist became assertable.

Source

pub fn requires_passport(&self, instrument_default: &PassportObligation) -> bool

Whether this instrument requires a passport for this group, resolving the binding’s override against the instrument’s own obligation.

Trait Implementations§

Source§

impl Clone for InstrumentBinding

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InstrumentBinding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for InstrumentBinding

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for InstrumentBinding

Source§

impl PartialEq for InstrumentBinding

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for InstrumentBinding

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for InstrumentBinding

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.