pub fn write_yaml_file<T: Serialize, P: AsRef<Path>>( data: &T, path: P, ) -> Result<()>
Writes a data structure to a YAML file.