Glossary: Software Design Patterns in Rust
Single responsibility principle (SRP)
Also written: SRP, single responsibility
The SOLID rule that a piece of code should have one reason to change. price_items changes only with line pricing, apply_discount only with offers.