Skip to main content Crate ottl Copy item path Source editors Standard OTTL editor functions. helpers Helper utilities for OTTL integrators. Field A single field in a path expression. Parser OTTL Parser that parses input strings and produces executable objects.
Paths are resolved at parse time (not at execution time) for maximum performance. Argument Argument passed to callback functions.
Can be either a positional argument or a named argument. IndexExpr Index for path or converter result Value Represents all possible values in OTTL expressions and function arguments.
Uses Arc for strings and Arc<u8 > for bytes to enable cheap cloning. Args Trait for lazy argument evaluation - ZERO ALLOCATION at runtime!
Arguments are evaluated only when requested by the callback. EvalContextFamily A “family” of evaluation context types, parameterized by lifetime. OttlParser Public API trait for the OTTL Parser. PathAccessor Trait for accessing (reading and writing) path values in the context. BoxError Standard error type for the library CallbackFn Callback function type for editors and converters.
Uses lazy Args trait for ZERO-ALLOCATION argument evaluation. CallbackMap Map of function names to their callback implementations. EnumMap Map of enum names to their integer values. PathResolver Type alias for the path resolver function.
Returns a PathAccessor for the given context family. PathResolverMap Map from path string to its resolver. Parser looks up each path in the expression
in this map; if a path is missing, parsing fails with an error. Result Standard result type for the library