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 moreimpl Copy for MetricPack
Source§impl Debug for MetricPack
impl Debug for MetricPack
Source§impl<'de> Deserialize<'de> for MetricPack
impl<'de> Deserialize<'de> for MetricPack
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>,
Source§impl Display for MetricPack
impl Display for MetricPack
impl Eq for MetricPack
Source§impl FromStr for MetricPack
impl FromStr for MetricPack
Source§impl Hash for MetricPack
impl Hash for MetricPack
Source§impl PartialEq for MetricPack
impl PartialEq for MetricPack
Source§impl Serialize for MetricPack
impl Serialize for MetricPack
impl StructuralPartialEq for MetricPack
Auto Trait Implementations§
impl Freeze for MetricPack
impl RefUnwindSafe for MetricPack
impl Send for MetricPack
impl Sync for MetricPack
impl Unpin for MetricPack
impl UnsafeUnpin for MetricPack
impl UnwindSafe for MetricPack
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.