parse_raw_message

Function parse_raw_message 

Source
pub fn parse_raw_message(text: &str) -> Result<DeribitWsMessage, DeribitWsError>
Expand description

Parses a raw JSON message into a DeribitWsMessage.

ยงErrors

Returns an error if JSON parsing fails or the message format is unrecognized.