Skip to main content

Module template

Module template 

Source
Expand description

Functionality for managing template fields used by Vector’s sinks.

Structs§

ConfinementConfig
Serializable config fragment for template confinement.
Template
A templated field.
UnsignedIntTemplate
Unsigned integer template.

Enums§

TemplateParseError
Errors raised whilst parsing a Template field.
TemplateRenderingError
Errors raised whilst rendering a Template.

Constants§

CONFINED_PREVIEW_BYTES
Maximum number of bytes of a rejected rendered value to include in a TemplateRenderingError::Confined error. Kept small so log lines remain bounded even under attacker-controlled input.

Functions§

confined_preview
Build a bounded preview of a rendered value for inclusion in TemplateRenderingError::Confined. Truncates on a UTF-8 char boundary.