Function geng::prelude::file::load_detect
pub async fn load_detect<T>(path: impl AsRef<Path>) -> Result<T, Error>where
T: DeserializeOwned,
Expand description
Load file and deserialize into given type using deserializer based on extension
Supports:
- json
- toml
- ron