pub fn write<T: Serialize>(path: &Path, value: &T) -> Result<(), String>
Writes value to path in the format its extension names.
value
path