Skip to main content

apply

Function apply 

Source
pub fn apply(rule: &Value, data: &Value) -> Result<Value, ApplyError>
Expand description

Evaluate a JSONLogic rule against a data value.

No fuel limit. No custom operators. Returns the raw JSONLogic result value.

Use evaluate for FSM guard positions — it adds fuel metering, typed errors, and custom operator support.