Module protofile

Expand description

Definitions for describing the format protobuf messages. These can be used to generate .proto files that are binary compatible with the associated Rust types.

Structs§

DescriptorWriter
A type used to write protobuf descriptors to .proto-format files.
FieldDescriptor
A descriptor for a message field.
FieldType
The description of a field type.
MessageDescriptor
A message descriptor.
OneofDescriptor
A description of a protobuf oneof.
TopLevelDescriptor
A message descriptor for a message rooted directly in a package (and not nested in another message type).
TypeUrl
A type URL, used in ProtobufAny (which shares an encoding with google.protobuf.Any).

Enums§

MessageDescription
A description of a message type.

Traits§

DescribeField
A trait for a self-describing protobuf message field.
DescribeMessage
A trait for a self-describing protobuf message.

Functions§

message_description
Returns the top-level message descriptor for a type with a default encoding.