teo_runtime/config/
server.rs

1use serde::Serialize;
2
3#[derive(Debug, Serialize, Clone)]
4pub struct Server {
5    pub bind: (String, u16),
6    #[serde(rename = "pathPrefix")]
7    pub path_prefix: Option<String>,
8}
9
10impl Server {
11
12    pub fn bind(&self) -> (&str, u16) {
13        (&self.bind.0, self.bind.1)
14    }
15
16    pub fn path_prefix(&self) -> Option<&str> {
17        self.path_prefix.as_deref()
18    }
19}