Skip to main content

backbone_catalog/application/
mod.rs

1//! Application layer
2//!
3//! Generated by metaphor-schema. Enhanced with runtime implementations.
4//!
5//! This layer contains:
6//! - Commands (CQRS write operations)
7//! - Queries (CQRS read operations)
8//! - Services (business logic)
9//! - Middleware (Auth & RBAC)
10//! - Triggers (lifecycle hooks)
11//! - Validation (input validation)
12//! - Workflows (saga/orchestration patterns)
13
14pub mod service;
15pub mod validator;
16
17// Re-exports
18pub use service::*;
19// <<< CUSTOM
20// Generated on disk but not declared by metaphor-schema (generator gap).
21// Declared here so regeneration preserves the wiring.
22pub mod usecases;          // per-entity use-case orchestration over services + DTOs
23pub mod auth;              // per-entity RBAC guards
24pub mod bulk_operations;   // per-entity bulk create/update helpers
25// NOTE: `subscriptions` is intentionally NOT declared — its generated
26// registry.rs has an incomplete type alias (`SubscriberRegistry` needs a
27// concrete `<Event>` generic the generator never filled in). Declare it once a
28// concrete catalog event type is wired; as-is it does not compile.
29// END CUSTOM