(error_type: &'static str, description: impl AsRef<str>)
| 412 | } |
| 413 | |
| 414 | pub fn error(error_type: &'static str, description: impl AsRef<str>) -> Json<Error> { |
| 415 | Json(Error { |
| 416 | error_type: error_type.into(), |
| 417 | description: Cow::Owned(description.as_ref().to_owned()), |
| 418 | data: None, |
| 419 | }) |
| 420 | } |
| 421 | |
| 422 | pub fn rich_error( |
| 423 | error_type: &'static str, |
no test coverage detected