pub fn classify(event_type: &str, data: &Value) -> Result<Event, String>Expand description
Classify a wire (type, data) pair into a typed Event.
Known types are validated against their *Data schema; an Err is a
per-event rejection reason (the batch still succeeds for the rest, per
plan §7.5). Unknown types never error — they become Event::Extension.