OpenLEADR / openleadr-rs

OpenADR 3.0 VTN and VEN implementation in Rust
Other
12 stars 4 forks source link

Improve `IntoResponse` for `AppError` #56

Open pohlm01 opened 3 weeks ago

pohlm01 commented 3 weeks ago

From OpenLEADR/openleadr-rs#50:

Looking through the into_problem function it feels like that needs to be dried up with a declarative macro that iterates all variants of the enum and uses an attribute on the enum variant to set the message string. But that will be an issue for another PR