Skip to main content

encode_event

Function encode_event 

Source
pub fn encode_event(event: &UiEvent) -> String
Expand description

Encode one UiEvent as a single JSON object (no trailing newline — the stream writer adds \n). Encoding cannot realistically fail for our derived Serialize; if it ever does, fall back to an error line so the stream stays valid JSONL.