feat(domain): implement RelayState enum with serialization support
Add RelayState enum to domain layer with: - Display, Debug, Clone, Copy, PartialEq, Eq derives - serde Serialize/Deserialize traits for API JSON handling - Type-safe representation of relay on/off states TDD green phase: Tests from T019 now pass. Ref: T020 (specs/001-modbus-relay-control/tasks.md)
This commit is contained in:
@@ -225,7 +225,7 @@
|
||||
- **File**: src/domain/relay.rs
|
||||
- **Complexity**: Low | **Uncertainty**: Low
|
||||
|
||||
- [ ] **T020** [P] [US1] [TDD] Implement RelayState enum
|
||||
- [x] **T020** [P] [US1] [TDD] Implement RelayState enum
|
||||
- Enum: On, Off
|
||||
- Implement Display, Debug, Clone, Copy, PartialEq, Eq, serde::Serialize/Deserialize
|
||||
- **File**: src/domain/relay.rs
|
||||
|
||||
Reference in New Issue
Block a user