Skip to main content

ExecuteProfileScript

Function ExecuteProfileScript 

Source
pub fn ExecuteProfileScript(
    engine: &Engine,
    script_path: &str,
    context: &ScriptContext,
) -> Result<ScriptResult, String>
Expand description

Executes a profile’s Rhai script and returns the results.

§Arguments

  • engine - The Rhai engine instance
  • script_path - Path to the Rhai script
  • context - Script execution context

§Returns

Result containing the script execution results