pub struct SyncEvent {
pub event_id: String,
pub run_id: String,
pub ts: OffsetDateTime,
pub kind: String,
pub schema_version: u32,
pub payload: Value,
pub origin: Option<String>,
pub hlc: Option<String>,
}Expand description
One line in a sync JSONL batch. Carries the full event so the remote
projector can replay it. payload is the redacted payload (same
redaction the projector applies at ingest).
Fields§
§event_id: String§run_id: String§ts: OffsetDateTime§kind: String§schema_version: u32§payload: Value§origin: Option<String>v3.0 #3: who/where wrote this event (<machine_id>/<agent>). Carried so a
replicated/team brain can attribute each event. #[serde(default)] keeps
pre-v8 sync batches (no origin) importable.
hlc: Option<String>v3.0 #3 Slice B: the event’s HLC (canonical string) for convergent
total-order replay. #[serde(default)] keeps pre-v9 batches importable
(the importer synthesizes a local HLC for those).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncEvent
impl<'de> Deserialize<'de> for SyncEvent
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
Auto Trait Implementations§
impl Freeze for SyncEvent
impl RefUnwindSafe for SyncEvent
impl Send for SyncEvent
impl Sync for SyncEvent
impl Unpin for SyncEvent
impl UnsafeUnpin for SyncEvent
impl UnwindSafe for SyncEvent
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