pub fn compile(expr: &str) -> ExpressionResult<Program>Available on crate feature
expression only.Expand description
Compile a CEL expression, enforcing the DFE profile.
Uses the profile config from the config cascade (if available).
ยงErrors
Returns ExpressionError::Validation if the expression violates the
DFE profile, or ExpressionError::Compilation if it has a syntax error.