fix compile error: rust now use namespaced enums