Struct spacetimedb_commitlog::payload::txdata::Mutations
source · pub struct Mutations<T> {
pub inserts: Box<[Ops<T>]>,
pub deletes: Box<[Ops<T>]>,
pub truncates: Box<[TableId]>,
}Expand description
Mutations of the data store performed by a transaction.
All operations are supposed to be mutually exclusive.
Even though not enforced, each kind of mutation should not contain duplicate
TableIds.
Fields§
§inserts: Box<[Ops<T>]>Rows inserted.
deletes: Box<[Ops<T>]>Rows deleted.
truncates: Box<[TableId]>Truncated tables.
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Mutations<T>
impl<T: PartialEq> PartialEq for Mutations<T>
impl<T> StructuralPartialEq for Mutations<T>
Auto Trait Implementations§
impl<T> Freeze for Mutations<T>
impl<T> RefUnwindSafe for Mutations<T>where
T: RefUnwindSafe,
impl<T> Send for Mutations<T>
impl<T> Sync for Mutations<T>
impl<T> Unpin for Mutations<T>
impl<T> UnwindSafe for Mutations<T>where
T: RefUnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more