Function regorust::regoSetInputJSONFile
source · pub unsafe extern "C" fn regoSetInputJSONFile(
rego: *mut regoInterpreter,
path: *const c_char,
) -> regoEnum
Expand description
Sets the current input document from the file at the specified path.
The file should contain a single JSON value. The value will be parsed and set as the interpreter’s input document.
If an error code is returned, more error information can be obtained by calling regoGetError.
@param rego The interpreter. @param path The path to the JSON file. @return REGO_OK if successful, REGO_ERROR otherwise.