Skip to main content

Crate tokmd_ffi_envelope

Crate tokmd_ffi_envelope 

Source
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§

EnvelopeExtractError
Errors produced while parsing or extracting a response envelope.

Functions§

extract_data
Extract data from 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.