Trait config_file::FromConfigFile[][src]

pub trait FromConfigFile {
    fn from_config_file<P: AsRef<Path>>(
        path: P
    ) -> Result<Self, ConfigFileError>
    where
        Self: Sized
; }

Trait for loading a struct from a configuration file. This trait is automatically implemented when serde::Deserialize is.

Required methods

fn from_config_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigFileError> where
    Self: Sized
[src]

Load ourselves from the configuration file located at @path

Loading content...

Implementors

impl<C: DeserializeOwned> FromConfigFile for C[src]

Loading content...