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