Convenience const plate types
This commit is contained in:
parent
5b45e50f4f
commit
6b7d657760
|
@ -1,5 +1,14 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
pub const SOURCE_W96: Plate = Plate {
|
||||||
|
plate_type: PlateType::Source,
|
||||||
|
plate_format: PlateFormat::W96,
|
||||||
|
};
|
||||||
|
pub const DESTINATION_W96: Plate = Plate {
|
||||||
|
plate_type: PlateType::Destination,
|
||||||
|
plate_format: PlateFormat::W96,
|
||||||
|
};
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Default, Clone, Copy, Serialize, Deserialize, Debug, Hash)]
|
#[derive(PartialEq, Eq, Default, Clone, Copy, Serialize, Deserialize, Debug, Hash)]
|
||||||
pub struct Plate {
|
pub struct Plate {
|
||||||
pub plate_type: PlateType,
|
pub plate_type: PlateType,
|
||||||
|
|
Loading…
Reference in New Issue