ESP WiFi.h gives error 'eth_config_t' does not name a type;

I see you have installed a standalone copy of the "ESPmDNS" library. The installation of the "esp32" boards platform includes a bundled copy of this library. The version of the library that is bundled with the platform is designed to be used with that version of the platform. The standalone installation you made is not compatible with the version of the platform (it seems to be an older version of the library). This is the cause of the error.

The solution will be to delete the incompatible installation of the library. Delete the folder at the following path:

C:\Users\nesto\Arduino\libraries\ESPmDNS\

After that, try compiling your sketch again. Hopefully it will work this time.