1
0
Fork 0

derive PartialEq for generated structs

This commit is contained in:
Cyborus 2024-01-18 14:54:11 -05:00
parent 6ee958ce86
commit 1c57c2d70b
No known key found for this signature in database
2 changed files with 185 additions and 185 deletions

View file

@ -738,7 +738,7 @@ fn create_struct_for_definition(
}
}
let out = format!("{docs}#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]\npub struct {name} {{\n{fields}}}\n\n");
let out = format!("{docs}#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]\npub struct {name} {{\n{fields}}}\n\n");
Ok(out)
}

File diff suppressed because it is too large Load diff