This makes the use of the field clearer and safer by allowing the compiler check that users actually assign proper enum values.