Skip to main content

parse_md_message

Function parse_md_message 

Source
pub fn parse_md_message(raw: &str) -> Result<AxMdMessage, Error>
Expand description

Parses a raw JSON string into an AxMdMessage.

Uses a fast byte-scan to extract the type discriminator without allocating an intermediate serde_json::Value tree, then dispatches directly to the target struct deserializer.

ยงErrors

Returns an error if the JSON is malformed or has an unknown type tag.