1 2 3 4 5 6 7 8 9
use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)] pub struct Rectangle { pub x: u32, pub y: u32, pub width: u32, pub height: u32, }