use byte for enum char in ApiStruct