read_file

Function read_file 

Source
pub fn read_file<T, P: AsRef<Path>>(path: P) -> DdResult<T>
Expand description

Deserialize an object from a JSON, TOML, or HJSON file.

ยงErrors

Return DdError::Read on file read errors, DdError::UnsupportedFileFormat if the file extension is not supported, and deserialization errors as appropriate.