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:
@@ -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