Skip to main content

run

Function run 

Source
pub fn run(script: &HookScript, hook: &str, ctx: Value) -> Result<HookOutcome>
Expand description

Call hook(ctx) and interpret the decision.

The caller supplies ctx as JSON and gets a HookOutcome; nothing about rhai crosses this boundary.