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
//! Docker Compose Topology Domain Types
//!
//! This module contains domain types for Docker Compose topology elements,
//! including networks, ports, services, and their relationships.
//!
//! ## Design Principles
//!
//! These types represent business concepts with strong typing:
//! - Type-safe network references (no string typos)
//! - Type-safe port bindings with protocol awareness
//! - Type-safe service identification
//! - Single source of truth for network names
//! - Domain-level invariant enforcement
//!
//! ## Components
//!
//! - [`Network`] - Docker Compose network enum representing isolation boundaries
//! - [`PortBinding`] - Port mapping with protocol and description
//! - [`Service`] - Docker Compose service enum for type-safe service identification
//! - [`DockerComposeTopology`] - Aggregate that derives required networks from services
//! - [`ServiceTopology`] - Topology information for a single service
//! - [`TopologyError`] - Validation errors (e.g., port conflicts)
//! - [`PortDerivation`] - Trait for services that derive their port bindings
//! - [`NetworkDerivation`] - Trait for services that derive their network assignments
// Re-export main types for convenience
pub use ;
pub use DependencyCondition;
pub use EnabledServices;
pub use ;
pub use Network;
pub use PortBinding;
pub use Service;
pub use ServiceDependency;
pub use ;