execute_profile_script

Function execute_profile_script 

Source
pub fn execute_profile_script(
    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