diff --git a/plate-tool-lib/src/plate.rs b/plate-tool-lib/src/plate.rs index 2a5158c..ed8e3a1 100644 --- a/plate-tool-lib/src/plate.rs +++ b/plate-tool-lib/src/plate.rs @@ -1,6 +1,6 @@ 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 plate_type: PlateType, 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 { Source, 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 { W6, W12,