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.
pub fn run(script: &HookScript, hook: &str, ctx: Value) -> Result<HookOutcome>Call hook(ctx) and interpret the decision.
The caller supplies ctx as JSON and gets a HookOutcome; nothing about
rhai crosses this boundary.