derive Copy
and Eq
for enums
This commit is contained in:
parent
5431303ecb
commit
a30f114064
2 changed files with 25 additions and 25 deletions
|
@ -147,7 +147,7 @@ pub fn create_enum(
|
|||
let strukt = format!(
|
||||
"
|
||||
{docs}
|
||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub enum {name} {{
|
||||
{variants}
|
||||
}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue