pub trait ConfigMap {
// Required method
fn to_map(&self) -> HashMap<String, Value>;
// Provided method
fn env_mapping() -> HashMap<String, String> { ... }
}Expand description
Trait for types that can be converted to a configuration map
Required Methods§
Provided Methods§
fn env_mapping() -> HashMap<String, String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.