use_case

Attribute Macro use_case 

Source
#[use_case]
Expand description

Marks a type as part of the Use Case layer (Layer 3)

Use cases orchestrate application logic and can depend on Repositories and Domain.

§Example

#[use_case]
struct GetUserUseCase {
    repo: Arc<dyn UserRepository>,
}