Skip to main content

register_function

Function register_function 

Source
pub fn register_function(
    name: impl Into<String>,
    function: impl Fn(&[Value]) -> Result<Value, String> + 'static,
)
Expand description

Adds a function to expressions in rules, appearance, actions, calculated fields and filters. An application’s state is of one thread, and so is this. A filter with one runs in memory, as the database does not know it.