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