pub async fn export_stats_csv( scheduler: State<'_, Scheduler>, ) -> Result<String, String>
Serialise every persisted event as a CSV string. The renderer hands the result to a Blob → download for “Export CSV” on Insights.