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