Nema 3r if exposed to weather.
Electrical panel box in closet.
According to the national code with relation to electrical panels in closets.
Nec 240 24d overcurrent devices shall not be located in the vicinity of easily ignitable materials such as a clothes closet.
If clearance was kept i don t see a major issue as pictured.
However there are a few issues to consider a bout the language of this code and how it applies to your specific situation.
With the electrical panel installed on the narrow side wall there might not be required 30 space unless you have a deep clothes closet.
In summary electrical panels can be located anywhere other than in bathrooms clothes closets above steps of a stairway or in fire rated partitions or area separation walls as long as the proper working clearances are provided per nec 110 26 and the enclosure type is suitable for the application i e.
This section does not differentiate between one type of clothes closet or another.
Rooms circuit breaker boxes may not be installed in bathrooms powder rooms clothes closets or in any room where there is insufficient space for a worker to access and work on the box.
The short safest and most efficient answer to this question is yes.
Panels are located in utility closets and approved all the time with proper clearances.
The wording is vague as it does not absolutely prohibit a panel in a closet more like just around easily ignited materials.
According to section 240 24 d of the national electrical code nec which says overcurrent devices shall not be located in the vicinity of easily ignitable material such as in clothes closets you are not permitted to do this.