pub struct WritePlan {
pub upserts: Vec<Value>,
pub deletes: Vec<KeyTuple>,
pub failed: Vec<(usize, String)>,
}Expand description
The partition of a page by write mode. Infallible to build — per-row
failures (missing/null key) land in failed with their original page index
so the caller can route them to a DLQ or abort.
Fields§
§upserts: Vec<Value>Rows to insert-or-update, deduped (last-write-wins), marker stripped.
deletes: Vec<KeyTuple>Key tuples to delete, deduped.
failed: Vec<(usize, String)>(page_index, message) for rows whose key could not be extracted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WritePlan
impl RefUnwindSafe for WritePlan
impl Send for WritePlan
impl Sync for WritePlan
impl Unpin for WritePlan
impl UnsafeUnpin for WritePlan
impl UnwindSafe for WritePlan
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