record-daemon: add record raw events, subscribe lp change events
record-daemon / Build, check and test (push) Successful in 2m0s
record-daemon / Build, check and test (push) Successful in 2m0s
This commit is contained in:
1 parent
aa53a84a46
commit
b64937601a
8 files changed
+401
-30
No files matched your search
@@ -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