pub struct ValidationResult {
pub is_valid: bool,
pub warnings: Vec<ValidationWarning>,
pub errors: Vec<ValidationError>,
pub recommendations: Vec<PerformanceRecommendation>,
pub estimated_memory: Option<usize>,
pub estimated_time: Option<f64>,
}Expand description
Pipeline validation result
Fields§
§is_valid: boolWhether the pipeline is valid
warnings: Vec<ValidationWarning>Validation warnings
errors: Vec<ValidationError>Validation errors
recommendations: Vec<PerformanceRecommendation>Performance recommendations
estimated_memory: Option<usize>Estimated memory usage (bytes)
estimated_time: Option<f64>Estimated computation time (milliseconds)
Implementations§
Source§impl ValidationResult
impl ValidationResult
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a summary of the validation result
Sourcepub fn high_severity_warnings(&self) -> Vec<&ValidationWarning>
pub fn high_severity_warnings(&self) -> Vec<&ValidationWarning>
Get high severity warnings
Sourcepub fn errors_of_type(
&self,
error_type: ValidationErrorType,
) -> Vec<&ValidationError>
pub fn errors_of_type( &self, error_type: ValidationErrorType, ) -> Vec<&ValidationError>
Get errors of specific type
Sourcepub fn recommendations_by_category(
&self,
category: RecommendationCategory,
) -> Vec<&PerformanceRecommendation>
pub fn recommendations_by_category( &self, category: RecommendationCategory, ) -> Vec<&PerformanceRecommendation>
Get recommendations by category
Trait Implementations§
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Source§fn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
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 ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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> 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