21 lines
459 B
Rust
21 lines
459 B
Rust
|
use uuid::Uuid;
|
||
|
use super::transfer_region::*;
|
||
|
use super::plate_instances::*;
|
||
|
|
||
|
#[derive(PartialEq, Clone, Copy)]
|
||
|
pub struct Transfer {
|
||
|
pub source_id: Uuid,
|
||
|
pub dest_id: Uuid,
|
||
|
pub transfer: TransferRegion,
|
||
|
}
|
||
|
|
||
|
impl Transfer {
|
||
|
fn new(source: PlateInstance, dest: PlateInstance, tr: TransferRegion) -> Self {
|
||
|
Self {
|
||
|
source_id: source.get_uuid(),
|
||
|
dest_id: dest.get_uuid(),
|
||
|
transfer: tr
|
||
|
}
|
||
|
}
|
||
|
}
|