pub trait ScoringModel {
// Required methods
fn score_recommendation(
&self,
recommendation: &OptimizationRecommendation,
) -> DeviceResult<f64>;
fn get_model_name(&self) -> String;
}Expand description
Scoring model trait
Required Methods§
fn score_recommendation( &self, recommendation: &OptimizationRecommendation, ) -> DeviceResult<f64>
fn get_model_name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".