Skip to content

Commit

Permalink
Add Eq and Hash Trait to Rust client struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzie authored Jan 8, 2025
1 parent eb96380 commit c352388
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Default for {{classname}} {
{{^isEnum}}
{{^discriminator}}
{{#vendorExtensions.x-rust-has-byte-array}}#[serde_as]
{{/vendorExtensions.x-rust-has-byte-array}}{{#oneOf.isEmpty}}#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
{{/vendorExtensions.x-rust-has-byte-array}}{{#oneOf.isEmpty}}#[derive(Clone, Default, Debug, Eq, PartialEq, Hash, Serialize, Deserialize)]
pub struct {{{classname}}} {
{{#vars}}
{{#description}}
Expand Down

0 comments on commit c352388

Please sign in to comment.