pub struct SyncOp {
pub op_id: String,
pub hlc_ts: i64,
pub node_id: String,
pub table_name: String,
pub record_id: String,
pub op_type: OpType,
pub payload: Option<Value>,
}Expand description
A single recorded mutation (insert, update, or delete) on a row.
Fields§
§op_id: StringGlobally unique operation identifier (UUID v4).
hlc_ts: i64Packed HLC timestamp ((physical_ms << 16) | logical).
node_id: StringID of the node that generated this operation.
table_name: StringName of the table that was mutated.
record_id: StringPrimary key of the affected row.
op_type: OpTypeKind of mutation.
payload: Option<Value>The new row data (JSON); absent for deletes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncOp
impl<'de> Deserialize<'de> for SyncOp
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 SyncOp
impl RefUnwindSafe for SyncOp
impl Send for SyncOp
impl Sync for SyncOp
impl Unpin for SyncOp
impl UnsafeUnpin for SyncOp
impl UnwindSafe for SyncOp
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