pub struct StmtId(pub usize);Expand description
Identifies one statement queued into a DbBatch.
Returned by DbBatch::add_statement and used to locate that statement’s
DbStatementResult in the Vec returned by DbBatch::commit: the id
is the result’s index, so results[id.0] is always this statement’s
outcome. Holding the id means callers never have to track insertion order
by hand to find their own RETURNING rows (e.g. for emitting change
events after the batch commits).
Tuple Fields§
§0: usizeTrait Implementations§
impl Copy for StmtId
impl Eq for StmtId
impl StructuralPartialEq for StmtId
Auto Trait Implementations§
impl Freeze for StmtId
impl RefUnwindSafe for StmtId
impl Send for StmtId
impl Sync for StmtId
impl Unpin for StmtId
impl UnsafeUnpin for StmtId
impl UnwindSafe for StmtId
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