(kind: AgentReportKind)
| 145 | } |
| 146 | |
| 147 | pub(crate) fn first_column(kind: AgentReportKind) -> &'static str { |
| 148 | match kind { |
| 149 | AgentReportKind::Daily => "Date", |
| 150 | AgentReportKind::Weekly => "Week", |
| 151 | AgentReportKind::Monthly => "Month", |
| 152 | AgentReportKind::Session => "Session", |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | pub(crate) fn summary_period(row: &crate::UsageSummary) -> &str { |
| 157 | row.date |