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