Function write_yaml_file
Source pub fn write_yaml_file<T>(path: &Path, data: &T) -> Result<()>
Expand description
Writes data as YAML to a file atomically.
§Arguments
path - The path to write to
data - The data to serialize
§Type Parameters
T - The type to serialize (must implement Serialize)
§Returns
Ok(()) on success
§Errors
Returns an error if serialization fails or the file cannot be written