From 6b7d657760760526120874494689bea1e7480c36 Mon Sep 17 00:00:00 2001 From: Emilia Date: Thu, 2 Jan 2025 21:20:02 -0500 Subject: [PATCH] Convenience const plate types --- plate-tool-lib/src/plate.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plate-tool-lib/src/plate.rs b/plate-tool-lib/src/plate.rs index ed8e3a1..d728f28 100644 --- a/plate-tool-lib/src/plate.rs +++ b/plate-tool-lib/src/plate.rs @@ -1,5 +1,14 @@ 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)] pub struct Plate { pub plate_type: PlateType,