Skip to main content

Module map

Module map 

Source
Expand description

§Map Function Module

Data transformation via JSONLogic expressions. Each mapping evaluates a compiled JSONLogic rule against the message’s context (OwnedDataValue) and assigns the result to a path. The result type is OwnedDataValue — no serde_json::Value intermediate.

§Features

  • JSONLogic-driven transformations
  • Dot-path target paths with auto-creation
  • Root-field merge semantics for data / metadata / temp_data
  • Null results skip assignment by default (“set or keep”); on_null: "unset" removes the path instead
  • unset: true removes a path outright
  • mode: "append" / "extend" add to an array in place
  • Audit-trail change tracking

Structs§

MapConfig
Configuration for the map function containing a list of mappings.
MapMapping
A single mapping that transforms and assigns data — or, with unset, removes it.

Enums§

MapMode
How a MapMapping writes a non-null result to its path.
OnNull
What a MapMapping does when its logic evaluates to null.