pub enum RowPatch {
Upsert {
id: RowId,
row: Row,
},
Remove {
id: RowId,
},
}Expand description
A delta to a specific row, keyed by RowId — never by position. Position is
geometry, which the frontend owns; keying by identity keeps the patch stream
idempotent and reorder-safe (a reconnect can re-apply the same patch without harm).
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RowPatch
impl<'de> Deserialize<'de> for RowPatch
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
impl StructuralPartialEq for RowPatch
Auto Trait Implementations§
impl Freeze for RowPatch
impl RefUnwindSafe for RowPatch
impl Send for RowPatch
impl Sync for RowPatch
impl Unpin for RowPatch
impl UnsafeUnpin for RowPatch
impl UnwindSafe for RowPatch
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