pub fn to_writer<T, W>(writer: W, to: &T) -> Result<()>where T: Serialize + ?Sized, W: Write,
Write a value to a string
when the data can not be written