Skip to main content

Module template

Module template 

Source
Expand description

§Template

A config field whose authored JSON is a JSONLogic expression. Every parameter of every built-in function is one of these, and custom handlers declare them for their own config.

A literal is JSONLogic for itself, so the static spelling an author already writes — "data.output", 30000, {"X-Env": "prod"} — is a valid Template. Those fold to a constant at compile time and are cached, so a statically-authored parameter does no per-message work. See Template::is_constant.

Structs§

Template
A config field whose authored JSON is a JSONLogic expression.
TemplateCompiler
Handed to crate::AsyncFunctionHandler::compile_input to compile a handler’s Template fields at engine construction.