1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Config marker trait for infrastructure configuration.
//!
//! Configuration components handle setup and initialization of infrastructure
//! concerns like database connections, message queue clients, HTTP servers,
//! and external service integrations. They provide a clear separation between
//! configuration concerns and business logic.
//!
//! Revision History
//! - 2025-10-01T00:00:00Z @AI: Initial Config marker trait definition.
/// Marker trait for infrastructure configuration components.
///
/// Config components handle initialization and setup of infrastructure
/// such as databases, message brokers, or external services.
///
/// # Example
///
/// ```rust
/// use hexser::infrastructure::Config;
///
/// struct DatabaseConfig {
/// connection_string: String,
/// pool_size: u32,
/// }
///
/// impl Config for DatabaseConfig {}
///
/// impl DatabaseConfig {
/// fn new(connection_string: String) -> Self {
/// Self {
/// connection_string,
/// pool_size: 10,
/// }
/// }
/// }
/// ```