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