pub struct QualityReport {
pub overall_score: f32,
pub passed: bool,
pub threshold: Option<f32>,
pub categories: Vec<CategoryScore>,
pub issues: Vec<QualityIssue>,
pub total_symbols: usize,
pub total_functions: usize,
}Expand description
Complete quality report.
Fields§
§overall_score: f32Overall score (0.0-10.0)
passed: boolWhether the audit passed (score >= threshold)
threshold: Option<f32>Score threshold (if specified)
categories: Vec<CategoryScore>Scores by category
issues: Vec<QualityIssue>Issues found
total_symbols: usizeTotal symbol count
total_functions: usizeTotal function count
Implementations§
Source§impl QualityReport
impl QualityReport
Sourcepub fn add_category(&mut self, score: CategoryScore)
pub fn add_category(&mut self, score: CategoryScore)
Add a category score.
Sourcepub fn add_issue(&mut self, issue: QualityIssue)
pub fn add_issue(&mut self, issue: QualityIssue)
Add an issue.
Sourcepub fn calculate_overall(&mut self)
pub fn calculate_overall(&mut self)
Calculate the overall score from category scores.
Sourcepub fn issues_by_severity(&self, severity: Severity) -> Vec<&QualityIssue>
pub fn issues_by_severity(&self, severity: Severity) -> Vec<&QualityIssue>
Get issues by severity.
Sourcepub fn format_text(&self) -> String
pub fn format_text(&self) -> String
Format as text output.
Sourcepub fn format_markdown(&self) -> String
pub fn format_markdown(&self) -> String
Format as markdown output.
Sourcepub fn format_json(&self) -> Result<String>
pub fn format_json(&self) -> Result<String>
Format as JSON output.
Trait Implementations§
Source§impl Clone for QualityReport
impl Clone for QualityReport
Source§fn clone(&self) -> QualityReport
fn clone(&self) -> QualityReport
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 QualityReport
impl Debug for QualityReport
Source§impl Default for QualityReport
impl Default for QualityReport
Source§impl<'de> Deserialize<'de> for QualityReport
impl<'de> Deserialize<'de> for QualityReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QualityReport
impl RefUnwindSafe for QualityReport
impl Send for QualityReport
impl Sync for QualityReport
impl Unpin for QualityReport
impl UnsafeUnpin for QualityReport
impl UnwindSafe for QualityReport
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().