Skip to main content

camel_core/lifecycle/domain/
route.rs

1/// Minimal domain value object representing a route's identity.
2/// No framework dependencies — pure domain type.
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct RouteSpec {
5    pub route_id: String,
6    pub from_uri: String,
7}
8
9impl RouteSpec {
10    pub fn new(route_id: impl Into<String>, from_uri: impl Into<String>) -> Self {
11        Self {
12            route_id: route_id.into(),
13            from_uri: from_uri.into(),
14        }
15    }
16}