pub struct OptimizationRecommendation {
pub operation: String,
pub current_time_ms: f64,
pub target_time_ms: f64,
pub recommendation: String,
}Expand description
Performance optimization recommendations
Fields§
§operation: StringOperation name
current_time_ms: f64Current average time in milliseconds
target_time_ms: f64Target time in milliseconds
recommendation: StringRecommendation message
Implementations§
Source§impl OptimizationRecommendation
impl OptimizationRecommendation
Sourcepub fn improvement_needed(&self) -> f64
pub fn improvement_needed(&self) -> f64
Calculate improvement needed as percentage
Trait Implementations§
Source§impl Clone for OptimizationRecommendation
impl Clone for OptimizationRecommendation
Source§fn clone(&self) -> OptimizationRecommendation
fn clone(&self) -> OptimizationRecommendation
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 OptimizationRecommendation
impl RefUnwindSafe for OptimizationRecommendation
impl Send for OptimizationRecommendation
impl Sync for OptimizationRecommendation
impl Unpin for OptimizationRecommendation
impl UnwindSafe for OptimizationRecommendation
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