pub fn read<T: DeserializeOwned>(path: &Path) -> Result<T, String>
The document at path (.json or .toml).
path
.json
.toml