pub fn write<T, P>(path: P, value: &T) -> Result<(), Error>where P: AsRef<Path>, T: Serialize,
Serialize into file