From c352388f6a73e57e66b8fefcd896205d5a7fb0e2 Mon Sep 17 00:00:00 2001 From: Aaron Cooper Date: Wed, 8 Jan 2025 02:29:30 +0000 Subject: [PATCH] Add Eq and Hash Trait to Rust client struct --- .../openapi-generator/src/main/resources/rust/model.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/rust/model.mustache b/modules/openapi-generator/src/main/resources/rust/model.mustache index 7367124d7c9c..ed4043664e5e 100644 --- a/modules/openapi-generator/src/main/resources/rust/model.mustache +++ b/modules/openapi-generator/src/main/resources/rust/model.mustache @@ -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}}