pub struct RowChange {
pub table: String,
pub op: ChangeOp,
pub columns: Vec<Option<String>>,
}Expand description
One row change extracted from a changeset.
columns holds the row’s column values in schema order. [walk] returns the
row’s new values for INSERT/UPDATE and old values for DELETE, with unchanged
UPDATE columns filled from the old side so primary keys and foreign keys stay
available.
None means SQL NULL or a column absent from the changeset.
Fields§
§table: String§op: ChangeOp§columns: Vec<Option<String>>Implementations§
Trait Implementations§
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.