Skip to main content

set_expression_function

Function set_expression_function 

Source
pub fn set_expression_function(
    config_json: &str,
    efunc_code: &str,
    params: SetExpressionFunctionParams<'_>,
) -> Result<(String, Value), SzConfigError>
Expand description

Set (update) an expression function

§Arguments

  • config_json - The configuration JSON string
  • efunc_code - Function code to update
  • params - Function parameters to update (all optional)

§Returns

Result with modified JSON string and the updated function record

§Errors

Returns error if function not found or JSON is invalid