AbstractConfig

Trait AbstractConfig 

Source
pub trait AbstractConfig<T = HashMap<String, String>> {
    // Required method
    fn load(target: Option<String>) -> Result<T, Error>
       where T: Default,
             HashMap<String, String>: Into<T>,
             Self: Sized;
}
Expand description

The trait for configuration loader.

Required Methods§

Source

fn load(target: Option<String>) -> Result<T, Error>
where T: Default, HashMap<String, String>: Into<T>, Self: Sized,

Load target file and initialize the structure.

Implementors§