Add Hash impl to lib plate types
This commit is contained in:
parent
438bd6b26c
commit
5b45e50f4f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue