Add CdpEvent::InvalidParams(serde_json::Value), and use it if deserializing an event param for a specific method fails.
There already are CdpEvent::Other(serde_json::Value), but it's only used for unknown method ids.
I use the raw_value feature on serde_json to get serde_json::Value without any allocation after deserializing an event param failed.
Fixes #167
Add
CdpEvent::InvalidParams(serde_json::Value)
, and use it if deserializing an event param for a specific method fails. There already areCdpEvent::Other(serde_json::Value)
, but it's only used for unknown method ids.I use the
raw_value
feature on serde_json to getserde_json::Value
without any allocation after deserializing an event param failed.