record-daemon: add record raw events, subscribe lp change events
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m0s
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m0s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user