pub struct ValidationSuite { /* private fields */ }Expand description
A collection of validation checks to be run together.
A ValidationSuite groups related checks and provides a way to execute
them against data. It supports telemetry integration for monitoring
validation performance and results.
§Examples
use term_guard::core::ValidationSuite;
use term_guard::telemetry::TermTelemetry;
let suite = ValidationSuite::builder("data_quality_suite")
.description("Comprehensive data quality validation")
.build();
// Or with telemetry configuration:
let telemetry = TermTelemetry::disabled();
let suite_with_telemetry = ValidationSuite::builder("data_quality_suite")
.with_telemetry(telemetry)
.build();Implementations§
Source§impl ValidationSuite
impl ValidationSuite
Sourcepub fn builder(name: impl Into<String>) -> ValidationSuiteBuilder
pub fn builder(name: impl Into<String>) -> ValidationSuiteBuilder
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the description of the validation suite if available.
Sourcepub fn telemetry_enabled(&self) -> bool
pub fn telemetry_enabled(&self) -> bool
Returns whether telemetry is enabled for this suite.
Sourcepub fn telemetry(&self) -> Option<&Arc<TermTelemetry>>
pub fn telemetry(&self) -> Option<&Arc<TermTelemetry>>
Returns the telemetry configuration for this suite.
Sourcepub fn optimizer_enabled(&self) -> bool
pub fn optimizer_enabled(&self) -> bool
Returns whether the query optimizer is enabled for this suite.
Sourcepub async fn run(&self, ctx: &SessionContext) -> Result<ValidationResult>
pub async fn run(&self, ctx: &SessionContext) -> Result<ValidationResult>
Trait Implementations§
Source§impl Clone for ValidationSuite
impl Clone for ValidationSuite
Source§fn clone(&self) -> ValidationSuite
fn clone(&self) -> ValidationSuite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidationSuite
impl !RefUnwindSafe for ValidationSuite
impl Send for ValidationSuite
impl Sync for ValidationSuite
impl Unpin for ValidationSuite
impl !UnwindSafe for ValidationSuite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more