dpp-domain 0.22.0

EU Digital Product Passport domain types, port traits, and per-field disclosure policy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! [`HeldRecord`] — what a lookup finds under a record identifier.

use super::receipt::ErasureReceipt;
use super::record::PersonalDataRecord;

/// What is held under a record identifier this port minted.
#[derive(Debug, Clone, PartialEq)]
pub enum HeldRecord {
    /// The record, with its data.
    Present(PersonalDataRecord),
    /// The record was erased, and this is its tombstone.
    Erased(ErasureReceipt),
}