pub fn serialize<T, S>(object: &T, serializer: S) -> Result<S::Ok, S::Error>where T: Serialize, S: Serializer,