Skip to main content

compile_with_config

Function compile_with_config 

Source
pub fn compile_with_config(
    expr: &str,
    config: &ProfileConfig,
) -> ExpressionResult<Program>
Available on crate feature expression only.
Expand description

Compile a CEL expression with an explicit profile config.

ยงErrors

Returns ExpressionError::Validation if the expression violates the DFE profile, or ExpressionError::Compilation if it has a syntax error.