#[non_exhaustive]pub enum AccessTier {
Public = 0,
Professional = 1,
Confidential = 2,
}Expand description
Re-export the canonical AccessTier from dpp-domain.
ESPR access tier levels for DPP data gating.
The EU ESPR mandates three tiers of data access:
- Public: No credential required. Visible to any consumer.
- Professional: Requires a W3C Verifiable Credential proving the holder’s role (repairer, recycler, remanufacturer, etc.).
- Confidential: Requires an institutional DID (market surveillance authority, customs, notified body).
This is the canonical definition used across all dpp-core crates.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for AccessTier
impl Clone for AccessTier
Source§fn clone(&self) -> AccessTier
fn clone(&self) -> AccessTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccessTier
Source§impl Debug for AccessTier
impl Debug for AccessTier
Source§impl<'de> Deserialize<'de> for AccessTier
impl<'de> Deserialize<'de> for AccessTier
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessTier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessTier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AccessTier
Source§impl Hash for AccessTier
impl Hash for AccessTier
Source§impl Ord for AccessTier
impl Ord for AccessTier
Source§fn cmp(&self, other: &AccessTier) -> Ordering
fn cmp(&self, other: &AccessTier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AccessTier
impl PartialEq for AccessTier
Source§impl PartialOrd for AccessTier
impl PartialOrd for AccessTier
Source§impl Serialize for AccessTier
impl Serialize for AccessTier
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AccessTier
Auto Trait Implementations§
impl Freeze for AccessTier
impl RefUnwindSafe for AccessTier
impl Send for AccessTier
impl Sync for AccessTier
impl Unpin for AccessTier
impl UnsafeUnpin for AccessTier
impl UnwindSafe for AccessTier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.