(
suffix: &str,
)
| 492 | |
| 493 | impl Config { |
| 494 | fn load_<T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug>( |
| 495 | suffix: &str, |
| 496 | ) -> T { |
| 497 | let file = Self::file_(suffix); |
| 498 | let cfg = load_path(file); |
| 499 | if suffix.is_empty() { |
| 500 | log::trace!("{:?}", cfg); |
| 501 | } |
| 502 | cfg |
| 503 | } |
| 504 | |
| 505 | fn store_<T: serde::Serialize>(config: &T, suffix: &str) { |
| 506 | let file = Self::file_(suffix); |