Server: domain (entities, value objects, ports), protocol (postcard wire types), application (config service, data projection), adapters (config-memory, tcp-server), bootstrap (composition root with fake data). Client: client-domain (layout engine, render tree, HAL ports), client-application (message handling, repaint commands), adapters (tcp-client, display-terminal), client-desktop (end-to-end working). ESP32: client-esp32 firmware with ILI9341 display over SPI, WiFi networking. Display test verified on hardware — landscape orientation, text rendering works. 60 workspace tests, all passing.
11 lines
193 B
Rust
11 lines
193 B
Rust
use crate::value_objects::Layout;
|
|
|
|
pub type LayoutPresetId = u16;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct LayoutPreset {
|
|
pub id: LayoutPresetId,
|
|
pub name: String,
|
|
pub layout: Layout,
|
|
}
|