pub struct TableDataDiff {
pub table_name: String,
pub columns: Vec<String>,
pub added_rows: Vec<Vec<SqlValue>>,
pub removed_rows: Vec<Vec<SqlValue>>,
pub removed_row_keys: Vec<Vec<SqlValue>>,
pub modified_rows: Vec<RowModification>,
pub stats: DiffStats,
pub warnings: Vec<String>,
}Expand description
Row-level diff for a single table.
Fields§
§table_name: StringTable name.
columns: Vec<String>Column names used for row context.
added_rows: Vec<Vec<SqlValue>>Right-side rows not found on the left side.
removed_rows: Vec<Vec<SqlValue>>Left-side rows not found on the right side.
removed_row_keys: Vec<Vec<SqlValue>>Identity values for removed rows, aligned by index with removed_rows.
modified_rows: Vec<RowModification>Rows with matching identity but different cell values.
stats: DiffStatsAggregate diff statistics.
warnings: Vec<String>User-facing warnings about diff reliability or scale.
Trait Implementations§
Source§impl Clone for TableDataDiff
impl Clone for TableDataDiff
Source§fn clone(&self) -> TableDataDiff
fn clone(&self) -> TableDataDiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableDataDiff
impl Debug for TableDataDiff
Source§impl<'de> Deserialize<'de> for TableDataDiff
impl<'de> Deserialize<'de> for TableDataDiff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TableDataDiff
impl PartialEq for TableDataDiff
Source§impl Serialize for TableDataDiff
impl Serialize for TableDataDiff
impl StructuralPartialEq for TableDataDiff
Auto Trait Implementations§
impl Freeze for TableDataDiff
impl RefUnwindSafe for TableDataDiff
impl Send for TableDataDiff
impl Sync for TableDataDiff
impl Unpin for TableDataDiff
impl UnsafeUnpin for TableDataDiff
impl UnwindSafe for TableDataDiff
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.