feat(torn-api): added optional strum feature
This commit is contained in:
parent
56e64470de
commit
8bfa1b8ac3
4 changed files with 31 additions and 5 deletions
|
|
@ -309,6 +309,7 @@ impl Enum {
|
|||
Some(quote! {
|
||||
#desc
|
||||
#[derive(Debug, Clone, PartialEq, #(#derives),*)]
|
||||
#[cfg_attr(feature = "strum", derive(strum::EnumIs, strum::EnumTryAs))]
|
||||
#serde_attr
|
||||
pub enum #name {
|
||||
#(#variants),*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue