refactor: Created a derive macro for defining the display style of Enum models and removed the use of the EnumDisplayStyle trait
This commit is contained in:
1 parent
7381eaef57
commit
f97d46cec3
20 files changed
+305
-271
No files matched your search
@@ -0,0 +1,7 @@
|
||||
use darling::FromVariant;
|
||||
|
||||
#[derive(Debug, FromVariant)]
|
||||
#[darling(attributes(display_style))]
|
||||
pub struct DisplayStyleArgs {
|
||||
pub name: Option<String>
|
||||
}
|
||||
Reference in new issue
Block a user