pub struct RowChange {
pub table: &'static str,
pub key: Vec<Value>,
pub kind: RowChangeKind,
pub authors: Vec<&'static str>,
}Expand description
One row of a transaction’s folded change set, as TransactionParticipant::before_commit
receives it: every row the ORM’s pipeline wrote in the transaction (model edits, relation
upkeep, in-process cascades), one entry per (table, key). Rows the engine’s own ON DELETE clause removed without the process faulting them are not in the set.
Fields§
§table: &'static strThe model’s table, as Model::TABLE names it (a join table by its generated name).
key: Vec<Value>The key as stored: one value, or the (parent, child) pair of a join row.
kind: RowChangeKindThe distinct author tags (day_model::with_author) of the changes folded into
the row, first seen first. The user’s own edits carry no tag; the container’s
external-merge author never reaches the set.
Trait Implementations§
impl StructuralPartialEq for RowChange
Auto Trait Implementations§
impl Forget for RowChange
impl Freeze for RowChange
impl RefUnwindSafe for RowChange
impl Send for RowChange
impl Sync for RowChange
impl Unpin for RowChange
impl UnsafeUnpin for RowChange
impl UnwindSafe for RowChange
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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