pub struct QualitySpec {
pub record: Vec<RecordCheck>,
pub batch: Vec<BatchCheck>,
}Available on crate feature
quality only.Expand description
The quality: config block. Per-record checks run first (partitioning the
page into survivors + quarantined); per-batch checks then run over the
survivors.
Fields§
§record: Vec<RecordCheck>Per-record checks, evaluated in declared order (first failure wins).
batch: Vec<BatchCheck>Per-batch checks, evaluated per page over the survivors.
Trait Implementations§
Source§impl Clone for QualitySpec
impl Clone for QualitySpec
Source§fn clone(&self) -> QualitySpec
fn clone(&self) -> QualitySpec
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 QualitySpec
impl Debug for QualitySpec
Source§impl Default for QualitySpec
impl Default for QualitySpec
Source§fn default() -> QualitySpec
fn default() -> QualitySpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QualitySpec
impl<'de> Deserialize<'de> for QualitySpec
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 QualitySpec
impl JsonSchema for QualitySpec
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 QualitySpec
impl RefUnwindSafe for QualitySpec
impl Send for QualitySpec
impl Sync for QualitySpec
impl Unpin for QualitySpec
impl UnsafeUnpin for QualitySpec
impl UnwindSafe for QualitySpec
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