pub struct ValidationResult {
pub is_valid: bool,
pub risk_level: ValidationRiskLevel,
pub issues: Vec<ValidationIssue>,
pub warnings: Vec<ValidationWarning>,
pub output_size: usize,
pub validation_timestamp: u64,
}Expand description
Validation result with detailed information
Fields§
§is_valid: bool§risk_level: ValidationRiskLevel§issues: Vec<ValidationIssue>§warnings: Vec<ValidationWarning>§output_size: usize§validation_timestamp: u64Implementations§
Source§impl ValidationResult
impl ValidationResult
Sourcepub fn has_security_risk(&self) -> bool
pub fn has_security_risk(&self) -> bool
Check if the result indicates a security risk
Sourcepub fn get_critical_issues(&self) -> Vec<&ValidationIssue>
pub fn get_critical_issues(&self) -> Vec<&ValidationIssue>
Get all critical issues
Sourcepub fn get_high_severity_issues(&self) -> Vec<&ValidationIssue>
pub fn get_high_severity_issues(&self) -> Vec<&ValidationIssue>
Get all high-severity issues
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