/// Describes a route registered by a service.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct RouteSpec {
    /// HTTP method, for example `GET`.
    pub method: String,
    /// Route path, for example `/ready`.
    pub path: String,
}

impl RouteSpec {
    /// Creates a route descriptor.
    pub fn new(method: impl Into<String>, path: impl Into<String>) -> Self {
        Self {
            method: method.into(),
            path: path.into(),
        }
    }
}
