pub fn read_file<T, P: AsRef<Path>>(path: P) -> DdResult<T>where
T: DeserializeOwned,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.