Skip to main content

Module publish

Module publish 

Source
Expand description

§Publish Function Module

Serialises a slice of the message’s data context to a JSON or XML string and stores it back under data.{target}. JSON uses OwnedDataValue’s native to_json_string; pretty-printed JSON and XML both bridge through serde_json::Value since neither is on the hot path.

Structs§

PublishConfig
Configuration for publish functions.

Functions§

execute_publish_json
Execute publish_json: serialise data.{source} to a JSON string and store at data.{target}.
execute_publish_xml
Execute publish_xml: serialise data.{source} to an XML string and store at data.{target}. Bridges to serde_json::Value for the existing recursive XML walker — XML is the slow path, no perf concern.