pub fn write_config<C, W>(writer: &mut W, object: &C) -> Result<(), Error>where W: Write, C: Serialize + ?Sized,