pub struct InspectionResult {
pub header: HeaderInspection,
pub metadata: MetadataInspection,
pub weights: Option<WeightStats>,
pub quality_score: Option<u32>,
pub duration: Duration,
pub warnings: Vec<InspectionWarning>,
pub errors: Vec<InspectionError>,
}Expand description
Model inspection result containing all extracted information
Fields§
§header: HeaderInspectionHeader information
metadata: MetadataInspectionMetadata information
weights: Option<WeightStats>Weight statistics
quality_score: Option<u32>Quality score (0-100)
duration: DurationInspection duration
warnings: Vec<InspectionWarning>Any warnings found
errors: Vec<InspectionError>Any errors found
Implementations§
Source§impl InspectionResult
impl InspectionResult
Sourcepub fn new(header: HeaderInspection, metadata: MetadataInspection) -> Self
pub fn new(header: HeaderInspection, metadata: MetadataInspection) -> Self
Create a new inspection result
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if inspection found any issues
Sourcepub fn issue_count(&self) -> usize
pub fn issue_count(&self) -> usize
Get total issue count
Trait Implementations§
Source§impl Clone for InspectionResult
impl Clone for InspectionResult
Source§fn clone(&self) -> InspectionResult
fn clone(&self) -> InspectionResult
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 InspectionResult
impl RefUnwindSafe for InspectionResult
impl Send for InspectionResult
impl Sync for InspectionResult
impl Unpin for InspectionResult
impl UnwindSafe for InspectionResult
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