Currently rust-protobuf results in error when decoding unknown enum values.
Protobuf 3 requires that message should preserve unknown enum values, not simply drop them.
Proposal
struct<E : ProtobufEnum> ProtobufEnumOrUknown<E> { ... }
will be introduced in the protobuf library.
Generated fields will be of that type:
color: ProtobufEnumOrUnknown<Color>; // for protobuf3 signular enums
color: Option<ProtobufEnumOrUnknown<Color>>; // for protobuf2 singular enums
colors: Vec<ProtobufEnumOrUnknown<Color>>; // for repeated enums
Getters and setters will work with enums as previously (e. g. Color).
Currently rust-protobuf results in error when decoding unknown enum values.
Protobuf 3 requires that message should preserve unknown enum values, not simply drop them.
Proposal
will be introduced in the protobuf library.
Generated fields will be of that type:
Getters and setters will work with enums as previously (e. g.
Color).