pub trait DisplayRow {
fn model(&self) -> &str;
fn to_display_cells(&self) -> Vec<String>;
fn row_key(&self) -> String {
self.model().to_string()
}
}
pub trait DailyStats: Default + Clone {
fn days_count(&self) -> usize;
fn average_metrics(&self) -> Vec<String>;
}
pub trait ProviderDisplay<'a, T: DailyStats> {
fn label(&self) -> &'static str;
fn icon(&self) -> &'static str;
fn emphasize(&self) -> bool;
fn stats(&self) -> &'a T;
}