Skip to main content

Module config

Module config 

Source

Structs§

Copperlace
Load-once renderer for repeated renders from one configuration.

Enums§

ConfigError
Error returned while loading, parsing, compiling, or rendering configuration.

Functions§

render_file
Renders one rule from a configuration file.
render_file_inferred
Renders one rule from a configuration file, inferring formatted structured JSON for object-valued rules.
render_file_inferred_with_context
Renders one rule from a configuration file with initial context, inferring formatted structured JSON for object-valued rules.
render_file_structured
Renders one object-valued rule from a configuration file as a structured value.
render_file_structured_with_context
Renders one object-valued rule from a configuration file as a structured value with initial context.
render_file_with_context
Renders one rule from a configuration file with initial context.
render_str
Renders one rule from a configuration string.
render_str_inferred
Renders one rule from a configuration string, inferring formatted structured JSON for object-valued rules.
render_str_inferred_with_context
Renders one rule from a configuration string with initial context, inferring formatted structured JSON for object-valued rules.
render_str_structured
Renders one object-valued rule from a configuration string as a structured value.
render_str_structured_with_context
Renders one object-valued rule from a configuration string as a structured value with initial context.
render_str_with_context
Renders one rule from a configuration string with initial context.
ruleset_from_file
Loads a configuration file and compiles it into a reusable RuleSet.
ruleset_from_str
Parses a configuration string and compiles it into a reusable RuleSet.