use std::fmt; #[derive(Debug, Clone, PartialEq, Eq)] pub struct ConfigEntry { pub key: String, pub value: String, } impl fmt::Display for ConfigEntry { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}={}", self.key, self.value) } } #[derive(Debug, Clone, PartialEq, Eq)] pub struct ConfigScope(pub String); impl ConfigScope { pub fn global() -> Self { Self("global".to_string()) } pub fn local() -> Self { Self("local".to_string()) } }