Add Hash impl to lib plate types

This commit is contained in:
Emilia Allison 2025-01-02 21:19:51 -05:00
parent 438bd6b26c
commit 5b45e50f4f
Signed by: emilia
GPG Key ID: 05D5D1107E5100A1
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(PartialEq, Eq, Default, Clone, Copy, Serialize, Deserialize, Debug)] #[derive(PartialEq, Eq, Default, Clone, Copy, Serialize, Deserialize, Debug, Hash)]
pub struct Plate { pub struct Plate {
pub plate_type: PlateType, pub plate_type: PlateType,
pub plate_format: PlateFormat, pub plate_format: PlateFormat,
@ -19,7 +19,7 @@ impl Plate {
} }
} }
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)] #[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug, Hash)]
pub enum PlateType { pub enum PlateType {
Source, Source,
Destination, Destination,
@ -30,7 +30,7 @@ impl Default for PlateType {
} }
} }
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)] #[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug, Hash)]
pub enum PlateFormat { pub enum PlateFormat {
W6, W6,
W12, W12,