There is no legal code involved here. Just time honored policies and procedures that may be changed and/or violated at will. Besides, the latitude granted via “prosecutorial discretion” all but guarantees the partisan application of justice. Finally, oaths of office are not legally binding, else the makeup of pubkic officialdom would be radically different.
Appointed by President Trump.
Or has no one ever tried to enforce them?