superposition
superposition copied to clipboard
feat: Add DisplayQuery proc_macro_derive
Problem
Similar Display trait being written over and over for different struct for converting the struct to query param format.
This often leads to confusion as to why a field is missed as it might not have been added in the implementation of the Display trait
Solution
Added DisplayQuery proc_macro_derive which derives the Display trait for the struct to get the desired query param.
It being auto generated makes sure that newly added fields get auto added to the Display trait's implementation