pub fn deserialize_message(json: &str) -> ProtocolResult<Message>Expand description
Deserialize a Message from a JSON string.
When decoding fails, the error says where:
ProtocolError::Deserialization for text that is not a JSON object or
whose type is not a string, ProtocolError::MissingType for a missing
or empty type, ProtocolError::UnknownType, ProtocolError::InvalidSession or
ProtocolError::InvalidPayload. A message without the session its type
requires gives ProtocolError::MissingSession.