
Architecture
Hexagonal Architecture in Rust With Traits as Ports
Put the business rules in the middle, describe what they need as traits (ports) and plug in databases and HTTP as adapters. A complete small example with a test double.
3 min read
Tag
1 post

Put the business rules in the middle, describe what they need as traits (ports) and plug in databases and HTTP as adapters. A complete small example with a test double.