pub struct CompileTimeValidator<State = Unvalidated> { /* private fields */ }Expand description
Enhanced compile-time validation system for ML pipeline configurations
Implementations§
Source§impl<State> CompileTimeValidator<State>
impl<State> CompileTimeValidator<State>
Sourcepub fn new() -> CompileTimeValidator<Unvalidated>
pub fn new() -> CompileTimeValidator<Unvalidated>
Create a new compile-time validator
Sourcepub fn with_config(
config: ValidationConfig,
) -> CompileTimeValidator<Unvalidated>
pub fn with_config( config: ValidationConfig, ) -> CompileTimeValidator<Unvalidated>
Create a new compile-time validator with custom configuration
Source§impl CompileTimeValidator<Unvalidated>
impl CompileTimeValidator<Unvalidated>
Sourcepub fn add_schema_validator(self, validator: Box<dyn SchemaValidator>) -> Self
pub fn add_schema_validator(self, validator: Box<dyn SchemaValidator>) -> Self
Add a schema validator
Sourcepub fn add_constraint_validator(
self,
validator: Box<dyn ConstraintValidator>,
) -> Self
pub fn add_constraint_validator( self, validator: Box<dyn ConstraintValidator>, ) -> Self
Add a constraint validator
Sourcepub fn add_dependency_validator(
self,
validator: Box<dyn DependencyValidator>,
) -> Self
pub fn add_dependency_validator( self, validator: Box<dyn DependencyValidator>, ) -> Self
Add a dependency validator
Sourcepub fn add_cross_reference_validator(
self,
validator: Box<dyn CrossReferenceValidator>,
) -> Self
pub fn add_cross_reference_validator( self, validator: Box<dyn CrossReferenceValidator>, ) -> Self
Add a cross-reference validator
Sourcepub fn add_custom_validator(self, validator: Box<dyn CustomValidator>) -> Self
pub fn add_custom_validator(self, validator: Box<dyn CustomValidator>) -> Self
Add a custom validator
Sourcepub fn validate(
self,
config: &HashMap<String, ConfigValue>,
) -> Result<(CompileTimeValidator<Validated>, ValidationResult)>
pub fn validate( self, config: &HashMap<String, ConfigValue>, ) -> Result<(CompileTimeValidator<Validated>, ValidationResult)>
Validate configuration and transition to validated state
Source§impl CompileTimeValidator<Validated>
impl CompileTimeValidator<Validated>
Sourcepub fn create_validated_config<T>(
&self,
config: T,
) -> ValidatedPipelineConfig<T>
pub fn create_validated_config<T>( &self, config: T, ) -> ValidatedPipelineConfig<T>
Create a validated configuration from raw config data
Sourcepub fn get_validation_metrics(&self) -> ValidationMetrics
pub fn get_validation_metrics(&self) -> ValidationMetrics
Get validation metrics
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for CompileTimeValidator<State>
impl<State> RefUnwindSafe for CompileTimeValidator<State>where
State: RefUnwindSafe,
impl<State> Send for CompileTimeValidator<State>where
State: Send,
impl<State> Sync for CompileTimeValidator<State>where
State: Sync,
impl<State> Unpin for CompileTimeValidator<State>where
State: Unpin,
impl<State> UnwindSafe for CompileTimeValidator<State>where
State: UnwindSafe,
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> 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