pub trait PricingStrategy {
// Required methods
fn calculate_price(&self, context: &PricingContext) -> DeviceResult<f64>;
fn get_strategy_name(&self) -> String;
}
Expand description
Pricing strategy trait
pub trait PricingStrategy {
// Required methods
fn calculate_price(&self, context: &PricingContext) -> DeviceResult<f64>;
fn get_strategy_name(&self) -> String;
}
Pricing strategy trait