pub enum LedgerEvent {
Show 18 variants
ProposalObserved {
proposal_id: String,
actor: String,
},
AdmissibilityChecked {
proposal_id: String,
allowed: bool,
},
EffectApplied {
proposal_id: String,
idempotency_key: String,
},
EffectDenied {
proposal_id: String,
reason: String,
},
VerifierCompleted {
node_id: String,
generation: u32,
},
ResidualEmitted {
residual_id: String,
node_id: String,
},
EnergyScored {
node_id: String,
generation: u32,
energy: f64,
},
GateDecisionRecorded {
node_id: String,
accepted: bool,
},
CandidateAccepted {
node_id: String,
generation: u32,
energy: f64,
},
CandidateRejected {
node_id: String,
generation: u32,
},
GraphRevisionAccepted {
revision_id: String,
sequence: u32,
},
NodeGenerationRetired {
node_id: String,
generation: u32,
},
ResidualCertificateIssued {
certificate_id: String,
node_id: String,
},
RollbackApplied {
target_event: String,
},
CapabilityGranted {
capability_id: String,
holder: String,
},
CapabilityRevoked {
capability_id: String,
},
ObservationRecorded {
handle: String,
content_hash: String,
},
Custom {
kind: String,
payload: Value,
},
}Expand description
A ledgered event (PSP-8 System 11). Representative of the full event family;
Custom carries any additional structured event.
Variants§
ProposalObserved
AdmissibilityChecked
EffectApplied
EffectDenied
VerifierCompleted
ResidualEmitted
EnergyScored
GateDecisionRecorded
CandidateAccepted
CandidateRejected
GraphRevisionAccepted
NodeGenerationRetired
ResidualCertificateIssued
RollbackApplied
CapabilityGranted
CapabilityRevoked
ObservationRecorded
An observation of nondeterministic data, recorded before use (R2).
Custom
Trait Implementations§
Source§impl Clone for LedgerEvent
impl Clone for LedgerEvent
Source§fn clone(&self) -> LedgerEvent
fn clone(&self) -> LedgerEvent
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 LedgerEvent
impl Debug for LedgerEvent
Source§impl<'de> Deserialize<'de> for LedgerEvent
impl<'de> Deserialize<'de> for LedgerEvent
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 LedgerEvent
impl PartialEq for LedgerEvent
Source§fn eq(&self, other: &LedgerEvent) -> bool
fn eq(&self, other: &LedgerEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LedgerEvent
impl Serialize for LedgerEvent
impl StructuralPartialEq for LedgerEvent
Auto Trait Implementations§
impl Freeze for LedgerEvent
impl RefUnwindSafe for LedgerEvent
impl Send for LedgerEvent
impl Sync for LedgerEvent
impl Unpin for LedgerEvent
impl UnsafeUnpin for LedgerEvent
impl UnwindSafe for LedgerEvent
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.