pub fn create_error_result_str(
code: StatusCode,
msg: &str,
) -> Result<(), ErrorResult>Expand description
Create an ErrorResult from input of string slice.
ยงArguments
code-StatusCodemsg- message string to add as an error description