pub struct PerformanceAnalysis {
pub overall_score: f64,
pub category_scores: PerformanceCategoryScores,
pub issues: Vec<PerformanceIssue>,
pub opportunities: Vec<OptimizationOpportunity>,
pub recommendations: Vec<Recommendation>,
pub metadata: AnalysisMetadata,
}Expand description
Performance analysis result containing insights and recommendations.
Provides structured analysis results including performance scores, identified issues, optimization opportunities, and actionable recommendations.
Fields§
§overall_score: f64Overall performance score (0-100)
category_scores: PerformanceCategoryScoresIndividual performance category scores
issues: Vec<PerformanceIssue>Identified performance issues
opportunities: Vec<OptimizationOpportunity>Optimization opportunities
recommendations: Vec<Recommendation>Actionable recommendations
metadata: AnalysisMetadataAnalysis metadata
Implementations§
Source§impl PerformanceAnalysis
impl PerformanceAnalysis
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new performance analysis result.
Initializes an empty analysis structure ready for population with analysis results and insights.
§Returns
A new PerformanceAnalysis instance
Sourcepub fn get_summary(&self) -> String
pub fn get_summary(&self) -> String
Get analysis summary.
Returns a formatted summary of the analysis results suitable for reporting and dashboard display.
§Returns
Formatted string with analysis summary
Sourcepub fn get_critical_issues(&self) -> Vec<&PerformanceIssue>
pub fn get_critical_issues(&self) -> Vec<&PerformanceIssue>
Get critical issues only.
Filters issues by severity to return only critical and high-priority issues that require immediate attention.
§Returns
Vector of critical issues
Sourcepub fn get_immediate_recommendations(&self) -> Vec<&Recommendation>
pub fn get_immediate_recommendations(&self) -> Vec<&Recommendation>
Get immediate recommendations.
Returns recommendations with immediate or high priority that should be addressed first.
§Returns
Vector of immediate recommendations
Trait Implementations§
Source§impl Clone for PerformanceAnalysis
impl Clone for PerformanceAnalysis
Source§fn clone(&self) -> PerformanceAnalysis
fn clone(&self) -> PerformanceAnalysis
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PerformanceAnalysis
impl RefUnwindSafe for PerformanceAnalysis
impl Send for PerformanceAnalysis
impl Sync for PerformanceAnalysis
impl Unpin for PerformanceAnalysis
impl UnwindSafe for PerformanceAnalysis
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
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>
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>
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