pub struct DataCompareConfig {
pub compare_mode: CompareMode,
pub ignore_fields: Vec<String>,
pub compare_fields: Vec<String>,
pub primary_key: String,
pub ignore_case: bool,
pub ignore_whitespace: bool,
pub numeric_tolerance: f64,
pub ignore_timestamp_ms: bool,
pub max_diff_count: usize,
}Expand description
数据对比配置
Fields§
§compare_mode: CompareMode对比模式
ignore_fields: Vec<String>忽略的字段列表
compare_fields: Vec<String>比较字段
primary_key: String主键字段
ignore_case: bool忽略大小写
ignore_whitespace: bool忽略空白字符
numeric_tolerance: f64数值容差(用于浮点数比较)
ignore_timestamp_ms: bool比较时间戳(忽略毫秒)
max_diff_count: usize最大差异数量限制
Trait Implementations§
Source§impl Clone for DataCompareConfig
impl Clone for DataCompareConfig
Source§fn clone(&self) -> DataCompareConfig
fn clone(&self) -> DataCompareConfig
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 DataCompareConfig
impl Debug for DataCompareConfig
Source§impl Default for DataCompareConfig
impl Default for DataCompareConfig
Source§impl<'de> Deserialize<'de> for DataCompareConfig
impl<'de> Deserialize<'de> for DataCompareConfig
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
Auto Trait Implementations§
impl Freeze for DataCompareConfig
impl RefUnwindSafe for DataCompareConfig
impl Send for DataCompareConfig
impl Sync for DataCompareConfig
impl Unpin for DataCompareConfig
impl UnsafeUnpin for DataCompareConfig
impl UnwindSafe for DataCompareConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more