Skip to main content

cel_program

Macro cel_program 

Source
macro_rules! cel_program {
    (id = $id:expr, msg = $msg:expr, expr = $expr:expr) => { ... };
}
Expand description

Defines a new CelProgram.

The inputs, in positional order, are:

  • id (expr, Into<FixedStr>): The id of the specific CEL rule. It should be unique within the same message scope.
  • msg (expr, Into<FixedStr>): The error message associated with the given rule.
  • expr (expr, Into<FixedStr>): The actual CEL expression to use when validating the target.