15 lines
484 B
Rust
15 lines
484 B
Rust
use std::sync::Arc;
|
|
|
|
use domain::ports::{AuthService, EventPublisher, UserCommand, UserQuery};
|
|
|
|
/// Dependencies for auth use cases.
|
|
///
|
|
/// Aggregates the ports required by register/login operations.
|
|
/// Built once at startup and shared via `Arc<AuthDeps>` or passed by reference.
|
|
pub struct AuthDeps {
|
|
pub user_command: Arc<dyn UserCommand>,
|
|
pub user_query: Arc<dyn UserQuery>,
|
|
pub auth_service: Arc<dyn AuthService>,
|
|
pub event_publisher: Arc<dyn EventPublisher>,
|
|
}
|