Function cedar_policy::eval_expression
source ยท pub fn eval_expression(
request: &Request,
entities: &Entities,
expr: &Expression,
) -> Result<EvalResult, EvaluationError>
Expand description
Evaluates an expression. If evaluation results in an error (e.g., attempting to access a non-existent Entity or Record, passing the wrong number of arguments to a function etc.), that error is returned as a String