pub struct RecordedEvent {
pub raw_code: i32,
pub timestamp_ms: f64,
pub extra: Map<String, Value>,
}Expand description
One recorder event captured by /record/start → /record/poll flow.
The Swift EventRecorder emits the notification discriminator as
rawCode, not code. Field names here mirror that schema exactly
(raw_code + serde camelCase → rawCode); a mismatch deserializes
silently to 0 rather than erroring, so the naming is load-bearing.
extra is a flatten catch-all for the enrich fields Swift splats onto
the top level of RecordedEvent (kind / frame /
payloadDescription / elementType / …), so new ones are accepted
without a wire break.
Fields§
§raw_code: i32Numeric event-type discriminator (Swift RecordedEvent.rawCode),
carrying the raw kAXNotification int. Typical values: 1018
(kAXFirstResponderChangedNotification) / 1028
(kAXHIDEventReceivedNotification) / 4002 (kAXUserTestingNotification)
/ 1006 (kAXAlertNotification) / 1021 (kAXPidStatusChangedNotification).
timestamp_ms: f64Capture-time timestamp in milliseconds.
extra: Map<String, Value>Free-form per-event enrich fields that the Swift side splats onto
the top level (kind / frame / payloadDescription /
elementType / appBundleId / payloadClassName / …).
Reconciliation reads only raw_code + timestamp_ms and never
depends on this; consumers wanting detail can read it on demand.
Trait Implementations§
Source§impl Clone for RecordedEvent
impl Clone for RecordedEvent
Source§fn clone(&self) -> RecordedEvent
fn clone(&self) -> RecordedEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more