pub fn serialize<S>( location: &PathBuf, serializer: S, ) -> Result<S::Ok, S::Error>where S: Serializer,