pub trait TrendDetector {
// Required methods
fn detect_trends(
&self,
spending_data: &[SpendingRecord],
) -> DeviceResult<TrendDetectionResult>;
fn get_detector_name(&self) -> String;
}Expand description
Trend detector trait
Required Methods§
fn detect_trends( &self, spending_data: &[SpendingRecord], ) -> DeviceResult<TrendDetectionResult>
fn get_detector_name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".