pub enum TableDiffOutput {
NoCountDiff(String, i64),
NoDiffWithDuration(String, Duration),
NotExists(String, TableSource),
Diff(String, TableCountDiff),
NoPrimaryKeyFound(String),
DataDiffWithDuration(String, i64, i64, Duration),
}
Expand description
Represents the output of a table difference.
Variants§
NoCountDiff(String, i64)
Indicates that there is no difference between the tables.
NoDiffWithDuration(String, Duration)
Indicates that there is no difference between the tables, along with the duration of the comparison.
NotExists(String, TableSource)
Indicates that the table does not exist in a specific source.
Diff(String, TableCountDiff)
Indicates a difference in table counts.
NoPrimaryKeyFound(String)
Indicates that no primary key was found in the table.
DataDiffWithDuration(String, i64, i64, Duration)
Indicates a difference in table data, along with the duration of the comparison.
Implementations§
Source§impl TableDiffOutput
impl TableDiffOutput
Sourcepub fn skip_table_diff(&self) -> bool
pub fn skip_table_diff(&self) -> bool
Determines whether the table difference should be skipped.
Sourcepub fn to_string(&self) -> ColoredString
pub fn to_string(&self) -> ColoredString
Converts the table difference output to a colored string.
Trait Implementations§
Source§impl Clone for TableDiffOutput
impl Clone for TableDiffOutput
Source§fn clone(&self) -> TableDiffOutput
fn clone(&self) -> TableDiffOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TableDiffOutput
impl Debug for TableDiffOutput
Source§impl DiffOutputMarker for TableDiffOutput
impl DiffOutputMarker for TableDiffOutput
fn convert(self) -> DiffOutput
Source§impl From<TableDiffOutput> for DiffOutput
impl From<TableDiffOutput> for DiffOutput
Source§fn from(val: TableDiffOutput) -> Self
fn from(val: TableDiffOutput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TableDiffOutput
impl RefUnwindSafe for TableDiffOutput
impl Send for TableDiffOutput
impl Sync for TableDiffOutput
impl Unpin for TableDiffOutput
impl UnwindSafe for TableDiffOutput
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