pub fn serialize_error<S, E>( error: &E, serializer: S, ) -> Result<S::Ok, S::Error>where S: Serializer, E: ErrorCode,