[Rust Server] Add derive of Hash to enums (#19603)

* [Rust Server] Add derive of Hash to enums

* Update samples
This commit is contained in:
Richard Whitehouse
2024-09-18 08:23:27 +01:00
committed by GitHub
parent cf5d17bbfe
commit f07f8bc997
3 changed files with 21 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ use crate::header;
/// which helps with FFI.
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, serde::Serialize, serde::Deserialize, Hash)]
#[cfg_attr(feature = "conversion", derive(frunk_enum_derive::LabelledGenericEnum))]{{#xmlName}}
#[serde(rename = "{{{.}}}")]{{/xmlName}}
pub enum {{{classname}}} {