pub enum RowPatchOp {
Put {
table_name: String,
value: RowRecord,
},
Update {
table_name: String,
id: PrimaryKeyValueRecord,
merge: Option<Value>,
constrain: Option<Vec<String>>,
},
Del {
table_name: String,
id: PrimaryKeyValueRecord,
},
Clear,
}Expand description
A change to the synced rows (rowPatchOpSchema).
Variants§
Put
Inserts or replaces the row.
Update
Merges merge into the row with primary key id. merge is a
jsonObjectSchema, which admits an array as well as an object; it is
kept as sent. constrain limits the columns the row keeps.
Fields
Del
Deletes the row with primary key id.
Clear
Deletes every row.
Trait Implementations§
Source§impl Clone for RowPatchOp
impl Clone for RowPatchOp
Source§impl Debug for RowPatchOp
impl Debug for RowPatchOp
Source§impl JsonCodable for RowPatchOp
impl JsonCodable for RowPatchOp
Source§impl PartialEq for RowPatchOp
impl PartialEq for RowPatchOp
impl StructuralPartialEq for RowPatchOp
Auto Trait Implementations§
impl Forget for RowPatchOp
impl Freeze for RowPatchOp
impl Move for RowPatchOp
impl RefUnwindSafe for RowPatchOp
impl Send for RowPatchOp
impl Sync for RowPatchOp
impl Unpin for RowPatchOp
impl UnsafeUnpin for RowPatchOp
impl UnwindSafe for RowPatchOp
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