pub trait ValidationErrorExt {
// Required methods
fn as_validation_error(self, validation_stage: &str) -> Self;
fn with_validation_context(
self,
stage: &str,
record_count: Option<u64>,
failure_count: Option<u64>,
) -> Self;
fn as_recoverable_validation(self) -> Self;
fn as_critical_validation(self) -> Self;
}Expand description
Extension trait for RecoveryError to provide validation-specific methods
Required Methods§
Sourcefn as_validation_error(self, validation_stage: &str) -> Self
fn as_validation_error(self, validation_stage: &str) -> Self
Convert to a validation error with context
Sourcefn with_validation_context(
self,
stage: &str,
record_count: Option<u64>,
failure_count: Option<u64>,
) -> Self
fn with_validation_context( self, stage: &str, record_count: Option<u64>, failure_count: Option<u64>, ) -> Self
Add validation-specific context
Sourcefn as_recoverable_validation(self) -> Self
fn as_recoverable_validation(self) -> Self
Mark as recoverable validation error
Sourcefn as_critical_validation(self) -> Self
fn as_critical_validation(self) -> Self
Mark as critical validation error
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.