crafty-proto 0.2.2

Wire types and postcard codec shared across the crafty framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Cross-shard saga journal metadata replicated through group 0 (Tier 2 v2).

use serde::{Deserialize, Serialize};

/// Saga journal upsert replicated via group 0 Raft (not the user state machine).
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct SagaJournalCommand {
    /// Saga identifier (journal key).
    pub saga_id: Vec<u8>,
    /// Postcard-encoded saga journal record bytes (see `crafty_client::SagaJournalRecord`).
    pub record: Vec<u8>,
}