mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
787 stars 81 forks source link

Deserialize `Command`s to a structure like CdpEvent/CdpEventMessage #152

Open lf- opened 1 year ago

lf- commented 1 year ago

I am implementing a Chrome DevTools server (with very limited scope; just Network) and it seems that the chromiumoxide_cdp types are not really set up for deserializing Command structures, only Events.

It would be useful to have generated enums for these so that the system can be run the other way around. For now I'm just going to implement it manually downstream as I don't intend to support much of the protocol, so this is a very low priority feature request.