Skip to main content

create_acl_structure

Function create_acl_structure 

Source
pub fn create_acl_structure(project_path: &Path) -> Result<()>
Expand description

Create the Anti-Corruption Layer Architecture directory structure

Creates all necessary directories for an ACL service:

  • src/ - Source code root
  • src/domain/ - Domain layer (legacy models, modern models, transformer traits)
  • src/application/ - Application layer (translator service)
  • src/infrastructure/ - Infrastructure layer (legacy client, health checks)
  • src/presentation/ - Presentation layer (HTTP handlers)
  • tests/ - Integration tests

§Arguments

  • project_path - Root path where the project directories will be created

§Errors

Returns an error if any directory creation fails