Skip to main content

EventPayload

Enum EventPayload 

Source
pub enum EventPayload {
Show 21 variants Genesis { network_id: String, }, IdentityCreated { did_doc_cid: String, }, DecisionCreated { decision_id: Hash256, title: String, decision_class: String, constitution_hash: Hash256, }, DecisionAdvanced { decision_id: Hash256, from_status: String, to_status: String, }, VoteCast { decision_id: Hash256, voter: Did, choice: String, }, DelegationGranted { delegation_id: Hash256, delegator: Did, delegatee: Did, expires_at: u64, }, DelegationRevoked { delegation_id: Hash256, revoked_at: u64, }, ConstitutionAmended { from_version: String, to_version: String, amendment_hash: Hash256, }, ChallengeRaised { challenge_id: Hash256, contested_decision_id: Hash256, grounds: String, }, EmergencyActionTaken { emergency_id: Hash256, decision_id: Hash256, ratification_deadline: u64, }, ConflictDisclosed { decision_id: Hash256, discloser: Did, }, HolonCreated { holon_did: Did, sponsor_did: Did, genesis_model_cid: Hash256, }, HolonActivated { holon_did: Did, approver_did: Did, approval_level: u32, }, HolonActionProposed { holon_did: Did, action_hash: Hash256, reasoning_trace_cid: Hash256, }, HolonActionVerified { holon_did: Did, action_hash: Hash256, cgr_proof_hash: Hash256, }, HolonActionExecuted { holon_did: Did, action_hash: Hash256, outcome_hash: Hash256, }, HolonSuspended { holon_did: Did, reason: String, suspended_by: Did, }, HolonReinstated { holon_did: Did, reinstated_by: Did, remediation_evidence_cid: Hash256, }, HolonSunset { holon_did: Did, reason: String, initiated_by: Did, }, CgrProofIssued { proof_id: u64, invariants_checked: u32, registry_hash: Hash256, }, Opaque(Vec<u8>),
}
Expand description

Typed event payload variants for structured governance, identity, and Holon lifecycle events.

These typed variants provide compile-time enforcement of payload structure, complementing the opaque payload: Vec<u8> on Event for cases that require structured payloads with DAG linkage.

Per EXOCHAIN Specification v2.2 §3A (Holon lifecycle) and decision.forum governance.

Variants§

§

Genesis

Genesis event for a new network.

Fields

§network_id: String
§

IdentityCreated

A new DID document was created.

Fields

§did_doc_cid: String
§

DecisionCreated

A new decision record was created.

Fields

§decision_id: Hash256
§title: String
§decision_class: String
§constitution_hash: Hash256
§

DecisionAdvanced

A decision was advanced to a new status.

Fields

§decision_id: Hash256
§from_status: String
§to_status: String
§

VoteCast

A vote was cast on a decision.

Fields

§decision_id: Hash256
§voter: Did
§choice: String
§

DelegationGranted

Delegation authority was granted.

Fields

§delegation_id: Hash256
§delegator: Did
§delegatee: Did
§expires_at: u64
§

DelegationRevoked

Delegation authority was revoked.

Fields

§delegation_id: Hash256
§revoked_at: u64
§

ConstitutionAmended

The constitution was amended.

Fields

§from_version: String
§to_version: String
§amendment_hash: Hash256
§

ChallengeRaised

A challenge was raised against a decision.

Fields

§challenge_id: Hash256
§contested_decision_id: Hash256
§grounds: String
§

EmergencyActionTaken

An emergency action was taken.

Fields

§emergency_id: Hash256
§decision_id: Hash256
§ratification_deadline: u64
§

ConflictDisclosed

A conflict of interest was disclosed.

Fields

§decision_id: Hash256
§discloser: Did
§

HolonCreated

A new Holon was created.

Fields

§holon_did: Did
§sponsor_did: Did
§genesis_model_cid: Hash256
§

HolonActivated

A Holon was activated.

Fields

§holon_did: Did
§approver_did: Did
§approval_level: u32
§

HolonActionProposed

A Holon action was proposed.

Fields

§holon_did: Did
§action_hash: Hash256
§reasoning_trace_cid: Hash256
§

HolonActionVerified

A Holon action was verified.

Fields

§holon_did: Did
§action_hash: Hash256
§cgr_proof_hash: Hash256
§

HolonActionExecuted

A Holon action was executed.

Fields

§holon_did: Did
§action_hash: Hash256
§outcome_hash: Hash256
§

HolonSuspended

A Holon was suspended.

Fields

§holon_did: Did
§reason: String
§suspended_by: Did
§

HolonReinstated

A Holon was reinstated after suspension.

Fields

§holon_did: Did
§reinstated_by: Did
§remediation_evidence_cid: Hash256
§

HolonSunset

A Holon was permanently retired.

Fields

§holon_did: Did
§reason: String
§initiated_by: Did
§

CgrProofIssued

A Compact Governance Representation proof was issued.

Fields

§proof_id: u64
§invariants_checked: u32
§registry_hash: Hash256
§

Opaque(Vec<u8>)

Opaque payload — extension point for domain-specific events.

Trait Implementations§

Source§

impl Clone for EventPayload

Source§

fn clone(&self) -> EventPayload

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 EventPayload

Source§

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

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

impl<'de> Deserialize<'de> for EventPayload

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 Eq for EventPayload

Source§

impl PartialEq for EventPayload

Source§

fn eq(&self, other: &EventPayload) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EventPayload

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

impl StructuralPartialEq for EventPayload

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, 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> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V