pub fn new(id: Identifier, default: T, custom_path: Option<&Path>) -> Result<Configuration<T>> {
        let path: PathBuf = get_configuration_path(&id, custom_path)?;
        let current: T = deserialize(&path, &default)?;

        Ok(Configuration {
            path: path,
            default: default,
            current: current,
        })
    }
/// Initialize a new Configuration with the given identifier, default set of
/// configuration values, and custom disk persistence path (optional). An
/// error might occur if determining the persistence path to use fails, or
/// if deserializing the previously persisted configuration (if any) fails.
Initialize a new Configuration with the given identifier, default set of
configuration values, and custom disk persistence path (optional). An
error might occur if determining the persistence path to use fails, or
if deserializing the previously persisted configuration (if any) fails.
Initialize a new Configuration with the given identifier default set of configuration values and custom disk persistence path ( optional ) . An error might occur if determining the persistence path to use fails or if deserializing the previously persisted configuration ( if any ) fails .
pub fn new(id: Identifier, default: T, custom_path: Option<&Path>) -> Result<Configuration<T>> {
        let path: PathBuf = get_configuration_path(&id, custom_path)?;
        let current: T = deserialize(&path, &default)?;
        Ok(Configuration {
            path: path,
            default: default,
            current: current,
        })
    }
pub fn new ( id : Identifier , default : T , custom_path : Option < & Path > ) -> Result < Configuration < T > > { let path : PathBuf = get_configuration_path ( & id , custom_path ) ? ; let current : T = deserialize ( & path , & default ) ? ; Ok ( Configuration { path : path , default : default , current : current , } ) }
Initialize a new Configuration with the given identifier, default set of
configuration values, and custom disk persistence path (optional).
Initialize a new Configuration with the given identifier default set of configuration values and custom disk persistence path ( optional ) .
id
Identifier
default
T
custom_path
Option<&Path>
id
Identifier
default
T
custom_path
Option<&Path>