Skip to main content

build_json_error

Function build_json_error 

Source
pub fn build_json_error(
    message: &str,
    hint: Option<&str>,
    trace: Option<Value>,
) -> Value
Expand description

Build {code: "error", error: message, hint?: ..., trace?: ...}.