Expand description
JSON envelope parsing/extraction helpers for tokmd FFI bindings.
This crate centralizes handling of the {"ok": bool, "data": ..., "error": ...}
response envelope used by tokmd_core::ffi::run_json.
Enums§
- Envelope
Extract Error - Errors produced while parsing or extracting a response envelope.
Functions§
- extract_
data - Extract
datafrom an already-parsed envelope. - extract_
data_ from_ json - Parse and extract from a JSON envelope string.
- extract_
data_ json - Parse and extract, returning a JSON-encoded data payload.
- format_
error_ message - Format an upstream error object into a stable message.
- parse_
envelope - Parse a JSON envelope.