hive-c0re: replace json! with typed structs in dashboard handlers

This commit is contained in:
damocles 2026-08-13 18:12:35 +02:00
commit 351341e87c
5 changed files with 86 additions and 37 deletions

View file

@ -27,6 +27,7 @@ use anyhow::{Context, Result};
use chrono::{DateTime, Utc};
use rusqlite::{Connection, params};
use serde::Serialize;
use utoipa::ToSchema;
/// Process-singleton handle, set once at coordinator startup. Mirrors
/// `build_logs::GLOBAL` — lets recording sites write without threading an
@ -80,7 +81,7 @@ impl AuditOutcome {
}
/// One audit row as returned to the dashboard.
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, ToSchema)]
pub struct AuditEntry {
pub id: i64,
pub ts_unix: DateTime<Utc>,