| 18 | |
| 19 | #[derive(Debug, Deserialize)] |
| 20 | pub struct Config { |
| 21 | #[serde(default)] |
| 22 | pub allowed_countries: BTreeSet<String>, |
| 23 | |
| 24 | #[serde(default)] |
| 25 | pub daily_quota: Option<usize>, |
| 26 | |
| 27 | #[serde(default)] |
| 28 | pub prefix: BTreeMap<String, Backend>, |
| 29 | } |
| 30 | |
| 31 | impl Config { |
| 32 | pub fn parse<P: AsRef<Path>>(config_path: P) -> Option<Config> { |
nothing calls this directly
no outgoing calls
no test coverage detected