pub fn from_bytes_versioned(raw: &[u8]) -> PyResult<VersionedMessage>
Expand description
Deserialize a versioned message, where the first byte indicates whether or not it’s a legacy message.
Args: raw (bytes): The serialized message.
Returns: VersionedMessage: the deserialized message.