Preheat the oven to 350ºF (180ºC) and adjust the oven rack to the center of the oven.
Heavily butter an 8-inch (20cm) springform pan and place it on a baking sheet.
In a small bowl, whisk together the flour, baking powder, and salt.
Peel and core the apples, then dice them into 1-inch (3cm) pieces.
In a large bowl, beat the eggs until foamy then whisk in the sugar, then rum and vanilla. Whisk in half of the flour mixture, then gently stir in half of the melted butter
Stir in the remaining flour mixture, then the rest of the butter.
Fold in the apple cubes until they’re well-coated with the batter and scrape them into the prepared cake pan and smooth the top a little with a spatula.
Bake the cake for 50 minute to 1 hour, or until a knife inserted into the center comes out clean. It may take less time, depending on the apples, so check the cake 5 or so minutes before the recommended baking time. Let the cake cool for 5 minutes, then run a knife around the edge to loosen the cake from the pan and carefully remove the sides of the cake pan, making sure no apples are stuck to it.If you've baked the cake in a standard cake pan, after you run a knife around the edge, wait until the cake is almost completely cool before unmolding it. To unmold the cake, place a small baking sheet or a large flat plate, with the bottom side farcing up, on top of the cake. Grasping both the baking sheet or plate with both hands, invert the cake so it's upside down. Remove the cake pan and peel off the parchment paper. Place a serving platter, bottom side up, over the cake, turn the cake over (along with the baking sheet), and out onto the serving plate.