aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / crates / aien-event-protocol / src / lib.rs
| 1 | use aien_protocol_types::{Digest32, EventId, SequenceNumber, Timestamp}; |
| 2 | use serde::{Deserialize, Serialize}; |
| 3 | |
| 4 | #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] |
| 5 | pub struct EventEnvelope { |
| 6 | pub event_id: EventId, |
| 7 | pub topic: String, |
| 8 | pub producer: String, |
| 9 | pub sequence: SequenceNumber, |
| 10 | pub timestamp: Timestamp, |
| 11 | pub payload_digest: Digest32, |
| 12 | pub payload: serde_json::Value, |
| 13 | } |