Skip to main content

ConfigMap

Trait ConfigMap 

Source
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§

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.

Implementors§