Skip to main content

Module eval

Module eval 

Source

Structs§

CompiledFilter
A validated filter compiled for repeated evaluation. Compile once per digest, evaluate per record.
DecodeLimits
Bounds on decoding one payload. Checked before the payload is parsed.
FilterRecord
One record as the evaluator sees it. Headers are read only when the filter has header predicates, so a caller may pass them lazily decoded. Header keys and values are borrowed, so a caller does not copy them per record.
HeaderRef
One user header of a record, borrowed from wherever the caller holds it.

Enums§

HeaderNeed
What a caller decodes from a record’s header block before evaluating.
HeaderValueRef
A typed user header value, borrowed. Mirrors HeaderScalar.

Functions§

decode_json
Decode a JSON payload within limits. The depth is checked by a scan over the raw bytes before any value is built, so a hostile payload cannot make the parser recurse or allocate past the limit.