Function read_yaml_file
Source pub fn read_yaml_file<T>(path: &Path) -> Result<T>
Expand description
Reads and parses a YAML file.
§Arguments
path - The path to the YAML file
§Type Parameters
T - The type to deserialize into (must implement DeserializeOwned)
§Returns
The parsed YAML data
§Errors
Returns an error if the file cannot be read or parsed