pub enum BatchCheck {
RowCount {
min: Option<usize>,
max: Option<usize>,
on_failure: OnFailure,
},
NullRate {
field: String,
max: f64,
on_failure: OnFailure,
},
Unique {
fields: Vec<String>,
on_failure: OnFailure,
},
DistinctCount {
field: String,
min: Option<usize>,
max: Option<usize>,
on_failure: OnFailure,
},
}Available on crate feature
quality only.Expand description
A per-batch check, evaluated per page over the survivors of the per-record pass.
Variants§
RowCount
Survivor count is within [min, max] (at least one bound required).
NullRate
Null-or-missing rate of field across survivors is <= max.
Fields
Unique
The composite fields tuple is unique across survivors.
DistinctCount
Distinct values of field across survivors is within [min, max].
Trait Implementations§
Source§impl Clone for BatchCheck
impl Clone for BatchCheck
Source§fn clone(&self) -> BatchCheck
fn clone(&self) -> BatchCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BatchCheck
impl Debug for BatchCheck
Source§impl<'de> Deserialize<'de> for BatchCheck
impl<'de> Deserialize<'de> for BatchCheck
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 JsonSchema for BatchCheck
impl JsonSchema for BatchCheck
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for BatchCheck
impl RefUnwindSafe for BatchCheck
impl Send for BatchCheck
impl Sync for BatchCheck
impl Unpin for BatchCheck
impl UnsafeUnpin for BatchCheck
impl UnwindSafe for BatchCheck
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