pub struct SyncEvent {
pub id: String,
pub origin: NodeId,
pub clock: VectorClock,
pub change_type: SyncChangeType,
pub entity_name: String,
pub entity_data: Option<String>,
pub timestamp: u64,
}Expand description
A synchronization event representing a schema change.
Fields§
§id: StringUnique event ID.
origin: NodeIdNode that originated this event.
clock: VectorClockVector clock for causality tracking.
change_type: SyncChangeTypeType of change.
entity_name: StringName of the affected entity.
entity_data: Option<String>Serialized entity data (JSON).
timestamp: u64Timestamp when event was created.
Implementations§
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 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