Skip to main content

decode_intent_body

Function decode_intent_body 

Source
pub fn decode_intent_body(body: &str) -> Result<Expr, String>
Expand description

Decode an Intent from an untagged-JSON request body and lift its envelope back to faithful Exprs. Returns a structured error string on malformed JSON or a non-object body; it never panics.