Debug for many structs

This commit is contained in:
Emilia Allison 2023-05-24 16:10:51 -04:00
parent 0414ddba3a
commit cd1f72fd9d
Signed by: emilia
GPG Key ID: 7A3F8997BFE894E0
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
use serde::{Serialize, Deserialize};
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)]
pub struct Plate {
pub plate_type: PlateType,
pub plate_format: PlateFormat,
@ -19,13 +19,13 @@ impl Plate {
}
}
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)]
pub enum PlateType {
Source,
Destination,
}
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)]
pub enum PlateFormat {
W6,
W12,

View File

@ -2,7 +2,7 @@ use serde::{Serialize, Deserialize};
use super::plate::Plate;
#[derive(Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Debug)]
pub enum Region {
Rect((u8, u8), (u8, u8)),
Point((u8, u8)),
@ -19,7 +19,7 @@ impl TryFrom<Region> for ((u8, u8), (u8, u8)) {
}
}
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)]
pub struct TransferRegion {
pub source_plate: Plate,
pub source_region: Region, // Even if it is just a point, we don't want corners.