Module protobuf::reflect

source ·
Expand description

§Reflection implementation for protobuf data

§Generated vs dynamic

rust-protobuf supports reflection for both:

  • generated messages (generated rust code)
  • dynamic messages (created from arbitrary FileDescriptorProto without code generation)

The API to work with these types of messages is the same.

§API

The API roughly follows Google protobuf C++ and Java API. Some minor adjustements are made to make code more idiomatic to rust.

Structs§

Enums§

Traits§

  • Type implemented by all protobuf singular types (primitives, string, messages, enums).
  • Special version of eq.