enumit

Convert struct to an enum.