Skip to content

Types derived with prost::Oneof can be encoded but not decoded? #1304

@Jason5Lee

Description

@Jason5Lee

My scenario is: I need to store a serialized prost::Oneof type. When reading from storage, I want to deserialize this Oneof type and then use it along with other information to construct a protobuf message for further processing. I noticed that types derived with prost::Oneof have an encode method but (as far as I find) not a decode method. Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions