pub enum IndexWriteOp {
DeleteGsi {
table_name: String,
index_name: String,
table_pk: String,
table_sk: String,
},
InsertGsi {
table_name: String,
index_name: String,
gsi_pk: String,
gsi_sk: String,
table_pk: String,
table_sk: String,
item_json: String,
},
DeleteLsi {
table_name: String,
index_name: String,
base_pk: String,
base_sk: String,
},
InsertLsi {
table_name: String,
index_name: String,
pk: String,
sk: String,
base_pk: String,
base_sk: String,
item_json: String,
},
}Expand description
One index-table write operation, backend-neutral.
The per-write and per-delete GSI/LSI fan-out builds an ordered list of these
and hands it to StorageBackend::apply_index_writes in a single call. The
default impl replays each op through the matching per-item method, identical
to the per-op loop it replaces; the wasm backend overrides it to collapse the
list into one bridge crossing. Each variant’s fields mirror the argument
order of the per-item method it stands in for.
Variants§
DeleteGsi
Remove this base key’s entry from a GSI table.
InsertGsi
Insert (or replace) this item’s projected entry into a GSI table.
Fields
DeleteLsi
Remove this base key’s entry from an LSI table.
InsertLsi
Insert (or replace) this item’s projected entry into an LSI table.
Trait Implementations§
Source§impl Clone for IndexWriteOp
impl Clone for IndexWriteOp
Source§fn clone(&self) -> IndexWriteOp
fn clone(&self) -> IndexWriteOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IndexWriteOp
impl RefUnwindSafe for IndexWriteOp
impl Send for IndexWriteOp
impl Sync for IndexWriteOp
impl Unpin for IndexWriteOp
impl UnsafeUnpin for IndexWriteOp
impl UnwindSafe for IndexWriteOp
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