pub enum DriftIssue {
TypeInconsistency {
path: String,
types: HashMap<JsonType, TypeDistribution>,
minority_percentage: f64,
},
GhostKey {
path: String,
density: f64,
occurunces: u64,
total_samples: u64,
},
SparseField {
path: String,
density: f64,
occurrences: u64,
total_samples: u64,
},
MissingKey {
path: String,
density: f64,
expected_occurrences: u64,
actual_occurrences: u64,
},
SchemaEvolution {
path: String,
pattern: EvolutionPattern,
},
}Expand description
Types of drift issues that we can detect
Variants§
TypeInconsistency
Field appears with multiple types, minority type excee=ds threshodl
GhostKey
Field appear in very few samples (< 10% threshold)
SparseField
Optional field with moderate presence (10-80%)
MissingKey
Expected high density key with unexpected gaps (80-95%)
SchemaEvolution
Schema changes detected - versions or naming inconsistency
Implementations§
Trait Implementations§
Source§impl Clone for DriftIssue
impl Clone for DriftIssue
Source§fn clone(&self) -> DriftIssue
fn clone(&self) -> DriftIssue
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 DriftIssue
impl Debug for DriftIssue
Source§impl PartialEq for DriftIssue
impl PartialEq for DriftIssue
Source§impl Serialize for DriftIssue
impl Serialize for DriftIssue
impl StructuralPartialEq for DriftIssue
Auto Trait Implementations§
impl Freeze for DriftIssue
impl RefUnwindSafe for DriftIssue
impl Send for DriftIssue
impl Sync for DriftIssue
impl Unpin for DriftIssue
impl UnsafeUnpin for DriftIssue
impl UnwindSafe for DriftIssue
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