Expand description
Evaluation carriers: bind language expressions/predicates to trusted
route-level metadata and transport evaluation failures as typed
camel_api::CamelError::ExpressionFailed errors.
Language crates produce Expression/Predicate implementations whose
failures are LanguageErrors. Route execution needs the opposite: a
fallible closure returning Result<_, CamelError> enriched with route
metadata (route id, step id, verb) and the trusted compile-time
destination. to_expression_failed performs that mapping; the carrier
structs package it behind the closure shapes
camel_api::ValueSource/PredicateSource consume.
Structs§
- Eval
Meta - Trusted route-level metadata describing WHERE and HOW an expression is evaluated.
- Language
Expression Eval - An
Expressionbound to trusted route metadata, evaluating toResult<Value, CamelError>. - Language
Predicate Eval - A
Predicatebound to trusted route metadata, evaluating toResult<bool, CamelError>.
Functions§
- to_
expression_ failed - Map a
LanguageErrorontoCamelError::ExpressionFailedusing the trusted route metadata.