Domain Modeling for Rust
Guides the implementation of Domain-Driven Design (DDD) patterns in Rust to create robust, invariant-safe business logic.
This skill empowers Claude to architect complex Rust applications using Domain-Driven Design principles. It bridges the gap between high-level business requirements and low-level Rust implementation by providing structured patterns for entities, value objects, aggregates, and repositories. By focusing on domain invariants, ownership rules, and type-driven safety, it ensures that your domain model is not only expressive but also leverages Rust's compiler to prevent illegal states and logical errors.
주요 기능
01Enforces domain invariants through private fields and validated constructors
02Provides templates for Repository traits and Domain Event enums
03Maps DDD concepts like Entities and Value Objects to idiomatic Rust patterns
04Guides aggregate boundary design using Rust's ownership and module system
05596 GitHub stars
06Facilitates type-driven development to eliminate primitive obsession
사용 사례
01Designing type-safe APIs that validate business rules at the boundary
02Architecting complex business logic for fintech, e-commerce, or enterprise systems
03Refactoring legacy Rust codebases into clean, decoupled domain layers