Skip to main content

create_error_result_str

Function create_error_result_str 

Source
pub fn create_error_result_str(
    code: StatusCode,
    msg: &str,
) -> Result<(), ErrorResult>
Expand description

Create an ErrorResult from input of string slice.

ยงArguments

  • code - StatusCode
  • msg - message string to add as an error description