pub struct ProcessEvent {Show 15 fields
pub event_id: ProcessEventId,
pub case_id: CaseId,
pub event_type: ProcessEventType,
pub event_commitment: [u8; 32],
pub issuer_address: Address,
pub issuer_class: LegalIssuerClass,
pub event_time_start: Option<Timestamp>,
pub event_time_end: Option<Timestamp>,
pub attachments: Vec<AttachmentRef>,
pub policy_id: PolicyId,
pub revocation_ref: Option<[u8; 32]>,
pub status: ProcessEventStatus,
pub created_at: Timestamp,
pub recorded_at_height: BlockHeight,
pub supersedes: Option<ProcessEventId>,
}Expand description
SRC-852 Legal Process Event
Fields§
§event_id: ProcessEventIdUnique event identifier
case_id: CaseIdCase this event belongs to
event_type: ProcessEventTypeEvent type
event_commitment: [u8; 32]BLAKE3 commitment of event details
issuer_address: AddressIssuer (must satisfy policy)
issuer_class: LegalIssuerClassIssuer class
event_time_start: Option<Timestamp>Event time window (start)
event_time_end: Option<Timestamp>Event time window (end)
attachments: Vec<AttachmentRef>Attachments (encrypted references)
policy_id: PolicyIdPolicy ID for this event
revocation_ref: Option<[u8; 32]>Revocation reference (SRC-805 compatible)
status: ProcessEventStatusStatus
created_at: TimestampCreation timestamp
recorded_at_height: BlockHeightBlock height when recorded
supersedes: Option<ProcessEventId>Supersedes event ID (if this corrects/updates another)
Implementations§
Source§impl ProcessEvent
impl ProcessEvent
Sourcepub fn generate_id(
case_id: &CaseId,
event_type: ProcessEventType,
issuer: &Address,
nonce: &[u8; 32],
) -> ProcessEventId
pub fn generate_id( case_id: &CaseId, event_type: ProcessEventType, issuer: &Address, nonce: &[u8; 32], ) -> ProcessEventId
Generate event ID
Trait Implementations§
Source§impl Clone for ProcessEvent
impl Clone for ProcessEvent
Source§fn clone(&self) -> ProcessEvent
fn clone(&self) -> ProcessEvent
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 moreSource§impl Debug for ProcessEvent
impl Debug for ProcessEvent
Source§impl<'de> Deserialize<'de> for ProcessEvent
impl<'de> Deserialize<'de> for ProcessEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for ProcessEvent
impl PartialEq for ProcessEvent
Source§fn eq(&self, other: &ProcessEvent) -> bool
fn eq(&self, other: &ProcessEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessEvent
impl Serialize for ProcessEvent
impl Eq for ProcessEvent
impl StructuralPartialEq for ProcessEvent
Auto Trait Implementations§
impl Freeze for ProcessEvent
impl RefUnwindSafe for ProcessEvent
impl Send for ProcessEvent
impl Sync for ProcessEvent
impl Unpin for ProcessEvent
impl UnsafeUnpin for ProcessEvent
impl UnwindSafe for ProcessEvent
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