MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / Config

Class Config

opensuse-proxy-cache/src/config.rs:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19#[derive(Debug, Deserialize)]
20pub 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
31impl Config {
32 pub fn parse<P: AsRef<Path>>(config_path: P) -> Option<Config> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected