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§
- Descriptor
Writer - A type used to write protobuf descriptors to
.proto
-format files. - Field
Descriptor - A descriptor for a message field.
- Field
Type - The description of a field type.
- Message
Descriptor - A message descriptor.
- Oneof
Descriptor - A description of a protobuf
oneof
. - TopLevel
Descriptor - 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 withgoogle.protobuf.Any
).
Enums§
- Message
Description - A description of a message type.
Traits§
- Describe
Field - A trait for a self-describing protobuf message field.
- Describe
Message - A trait for a self-describing protobuf message.
Functions§
- message_
description - Returns the top-level message descriptor for a type with a default encoding.