Attribute Macro use_case
Source #[use_case]
Available on crate feature di only.
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>,
}