Convenience const plate types

This commit is contained in:
Emilia Allison 2025-01-02 21:20:02 -05:00
parent 5b45e50f4f
commit 6b7d657760
Signed by: emilia
GPG Key ID: 05D5D1107E5100A1
1 changed files with 9 additions and 0 deletions

View File

@ -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,