pub struct QualityScore {
pub total: f32,
pub grade: Grade,
pub raw_score: f32,
pub dimensions: DimensionScores,
pub findings: Vec<Finding>,
pub critical_issues: Vec<CriticalIssue>,
}Expand description
100-point model quality score
Fields§
§total: f32Total score (0-100, normalized from 110 raw points)
grade: GradeGrade letter (A+, A, A-, B+, …)
raw_score: f32Raw score before normalization (0-110)
dimensions: DimensionScoresIndividual dimension scores
findings: Vec<Finding>Detailed findings and recommendations
critical_issues: Vec<CriticalIssue>Critical issues that must be addressed
Implementations§
Source§impl QualityScore
impl QualityScore
Sourcepub fn new(
dimensions: DimensionScores,
findings: Vec<Finding>,
critical_issues: Vec<CriticalIssue>,
) -> QualityScore
pub fn new( dimensions: DimensionScores, findings: Vec<Finding>, critical_issues: Vec<CriticalIssue>, ) -> QualityScore
Create a new quality score from dimension scores
Sourcepub fn passes_threshold(&self, min_score: f32) -> bool
pub fn passes_threshold(&self, min_score: f32) -> bool
Check if the model passes minimum quality threshold
Sourcepub fn has_critical_issues(&self) -> bool
pub fn has_critical_issues(&self) -> bool
Check if there are critical issues
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Get warnings count
Sourcepub fn info_count(&self) -> usize
pub fn info_count(&self) -> usize
Get info count
Trait Implementations§
Source§impl Clone for QualityScore
impl Clone for QualityScore
Source§fn clone(&self) -> QualityScore
fn clone(&self) -> QualityScore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QualityScore
impl Debug for QualityScore
Auto Trait Implementations§
impl Freeze for QualityScore
impl RefUnwindSafe for QualityScore
impl Send for QualityScore
impl Sync for QualityScore
impl Unpin for QualityScore
impl UnsafeUnpin for QualityScore
impl UnwindSafe for QualityScore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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