record-daemon: add record raw events, subscribe lp change events
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m0s

This commit is contained in:
2026-03-27 22:25:24 +01:00
parent aa53a84a46
commit b64937601a
8 changed files with 401 additions and 30 deletions

View File

@@ -23,12 +23,18 @@ pub struct TimestampedEvent {
pub game_timestamp: Option<Duration>,
/// Real-world timestamp.
pub timestamp: DateTime<Utc>,
/// Event type name.
/// Event type name (derived from URI).
pub event_type: String,
/// Human-readable description.
pub description: String,
/// The actual event data.
pub event: GameEvent,
/// Raw JSON data from the API (for flexibility).
#[serde(default)]
pub raw_data: Option<serde_json::Value>,
/// URI of the endpoint that triggered this event.
#[serde(default)]
pub uri: Option<String>,
}
/// Metadata for a recording.