Skip to main content

load_json

Function load_json 

Source
pub fn load_json<T: DeserializeOwned>(
    path: impl AsRef<Path>,
) -> Result<T, FaucetError>
Expand description

Load a config struct from a JSON file.

The file contents are read and deserialized into T.