pub enum MetricPack {
Schema,
Statistics,
Patterns,
Quality,
}Expand description
High-level categories of analysis that can be selectively enabled.
Variants§
Schema
Column names, data types, null counts — always included.
Statistics
Numeric stats (min/max/mean/median/std_dev/quartiles), text lengths.
Patterns
Regex pattern detection (email, phone, UUID, etc.).
Quality
ISO 25012 quality dimensions (completeness, consistency, etc.).
Implementations§
Source§impl MetricPack
impl MetricPack
Sourcepub fn include_statistics(packs: Option<&[Self]>) -> bool
pub fn include_statistics(packs: Option<&[Self]>) -> bool
Whether statistics should be computed given the selected packs.
Sourcepub fn include_patterns(packs: Option<&[Self]>) -> bool
pub fn include_patterns(packs: Option<&[Self]>) -> bool
Whether pattern detection should run given the selected packs.
Sourcepub fn include_quality(packs: Option<&[Self]>) -> bool
pub fn include_quality(packs: Option<&[Self]>) -> bool
Whether quality metrics should be computed given the selected packs.
Sourcepub fn resolve_with_dimensions(
packs: Option<&[Self]>,
dimensions: Option<&[QualityDimension]>,
) -> Option<Vec<Self>>
pub fn resolve_with_dimensions( packs: Option<&[Self]>, dimensions: Option<&[QualityDimension]>, ) -> Option<Vec<Self>>
Resolve the packs to compute, folding in an explicit quality-dimension selection.
Requesting an empty set of dimensions (Some(&[])) says “assess no
dimension”, which is the same statement as not selecting the quality
pack: nothing is analyzed, so the report carries no quality. Without
this, an empty selection produces a quality object whose dimensions are
all absent — an artifact that reads like a measured result.
This is deliberately about what was requested. A caller that asks for dimensions and gets none back (an empty dataset, no date column) was still analyzed, and keeps a quality object reporting exactly that.
Trait Implementations§
Source§impl Clone for MetricPack
impl Clone for MetricPack
Source§fn clone(&self) -> MetricPack
fn clone(&self) -> MetricPack
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more