api-error 0.1.3

A derive macro for attaching HTTP status codes and user-facing messages to Rust error types.
Documentation
1
2
3
4
5
error: the `#[api_error(transparent)]` attribute is only allowed on structs with only one field
 --> tests/ui/transparent_multi_field_struct.rs:6:8
  |
6 | struct MyError(String, i32);
  |        ^^^^^^^