Expand description
Exports reports, tasks and summaries to CSV, JSON and Excel, including the hourly (SiServer-style) Excel layout.
use kasl::libs::export::{Exporter, ExportFormat, ExportData};
use chrono::NaiveDate;
let exporter = Exporter::new(ExportFormat::Csv, None);
exporter.export(ExportData::Report, NaiveDate::from_ymd_opt(2025, 1, 15).unwrap()).await?;Structs§
- Export
DaySum - One day’s line in the exported monthly summary.
- Export
Interval - One work interval row in the exported report.
- Export
Report - A daily report as exported; fields are pre-formatted strings.
- Export
Summary - A monthly summary as exported.
- Export
Task - One task row in the exported report.
- Exporter
- Gathers data and writes it in the chosen format.
Enums§
- Export
Data - What gets exported.
- Export
Format - Output formats for exports.