Skip to main content

SectorDescriptor

Struct SectorDescriptor 

Source
pub struct SectorDescriptor {
Show 13 fields pub key: String, pub title: String, pub status: RegulatoryStatus, pub regime: Regime, pub legal_basis: Vec<String>, pub dpp_applies_from: Option<String>, pub retention_years: u32, pub schema_versions: Vec<String>, pub current_schema_version: String, pub product_categories: Vec<String>, pub disclosure: HashMap<String, Disclosure>, pub plugin: Option<String>, pub notes: Option<String>,
}
Expand description

A single sector’s catalog entry — the canonical record every component (schema registry, plugin host, passport model) resolves against.

Fields§

§key: String

Canonical sector key, e.g. "battery", "unsold-goods". Matches the schema-registry sector key and the plugin’s meta().sector.

§title: String

Human-readable title.

§status: RegulatoryStatus

Regulatory status — gates whether determinations are binding.

§regime: Regime

Which EU legal instrument family this sector derives from.

Orthogonal to Self::status: the regime says which law, the status says whether it binds yet. Determination gating must never branch on this field.

§legal_basis: Vec<String>

EU legal instrument(s) this sector derives from.

§dpp_applies_from: Option<String>

ISO-8601 date the passport obligation applies from, when known.

Scope note: this is when the DPP itself becomes mandatory. It is not the determination gate and must not be used as one — a regulation may bind long before its passport is required (see RegulatoryStatus). Where a sector carries several obligations with different dates, this records the earliest that binds an in-scope operator; the manifest notes carry the rest.

§retention_years: u32

Minimum data retention in years required by the applicable act.

§schema_versions: Vec<String>

Schema versions available for this sector (semver strings).

§current_schema_version: String

The schema version applicable to new passports in this sector right now. Decouples “current” from “latest embedded” so a future schema can ship embedded without becoming current until its act is in force. Must be one of schema_versions.

§product_categories: Vec<String>

Product categories within this sector — sub-types a plugin may branch on, never dispatch keys. See DATA-MODEL.md §3.5.

§disclosure: HashMap<String, Disclosure>

Per-field Disclosure class for this sector’s data: field name → class; unlisted fields default to public. Not an ordering — a class names which audiences may see the field, and the audiences do not nest. Universal conformity fields (signatures, audit trails) are folded in by the access-policy engine, so they are not repeated per sector here.

§plugin: Option<String>

Plugin that handles this sector (crate / filename stem, e.g. "sector-battery"). None if no plugin is bound yet.

§notes: Option<String>

Free-text regulatory note (effective dates, scope, caveats).

Trait Implementations§

Source§

impl Clone for SectorDescriptor

Source§

fn clone(&self) -> SectorDescriptor

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 SectorDescriptor

Source§

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

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

impl<'de> Deserialize<'de> for SectorDescriptor

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 Serialize for SectorDescriptor

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

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<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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more