Function geng::prelude::file::load_detect

pub async fn load_detect<T>(path: impl AsRef<Path>) -> Result<T, Error>
Expand description

Load file and deserialize into given type using deserializer based on extension

Supports:

  • json
  • toml
  • ron