Prepare the rice. Cook the rice in salted water until half cooked, about 10 minutes. Then put the rice in a sieve or colander and let the water drain. Then return the rice to the pan and pour in the milk. Cook the rice porridge over medium heat for about 10-15 minutes.
Combine rice with the remaining ingredients and put in the oven. Beat eggs with sugar until foamy. Pour them into the slightly cooled porridge and stir. Put the resulting mixture in a form greased with butter and bake in the oven, preheated to 180 degrees, for 25-30 minutes.