Slice the eggplant and onion thinly.
Beat the eggs and season with salt.
Heat olive oil in a pan and sauté the onion and eggplant.
When the eggplant is soft, pour in the egg mixture and stir gently until cooked.
Top the rice with the eggplant and eggs.