You can use std.meta.fields to get all fields as a []const Type.EnumField.
std.meta.fields
[]const Type.EnumField