Function 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