Under the rule of law, which government officials are subject to the law?

Only those who are appointed
Any government official except those in the judiciary
Only those who have been elected
Any government official either elected or not