Crate protobuf[−][src]
Expand description
Library to read and write protocol buffers data.
Rust files from .proto
files can be generated with
protobuf-codegen
, protobuf-codegen-pure
crates.
See readme on the project github page.
Modules
Generated file from google/protobuf/descriptor.proto
Utilities to support “extension” fields.
JSON printer and parser which tries to follow protobuf conventions
Generated file from google/protobuf/compiler/plugin.proto
Reflection implementation for protobuf types.
Functions and typrs used by generated protobuf code.
Generated file from rustproto.proto
Protobuf “text format” implementation.
Generated code for “well known types”
Constants used in serializations.
Structs
Thin wrapper around Bytes
which guarantees that bytes are valid UTF-8 string.
Should be API-compatible to String
.
Buffered read with handy utilities.
Buffered write with handy utilities
Wrapper around Option<Box<T>>
, convenient newtype.
Protobuf enums with possibly unknown values are preserved in this struct.
Hold “unknown” fields in parsed message.
Iterator over UnknownFields
Field unknown values.
Iterator over unknown values
Enums
Generic protobuf error
Unknown value.
Reference to unknown value.
Constants
protobuf crate version
This symbol can be referenced to assert that proper version of crate is used
Traits
anything that can be cleared
Trait implemented for all generated structs for protobuf messages.
Dynamic-dispatch version of Message
.
Trait implemented by all oneof types in generated code.
Trait implemented by all protobuf enum types.
Type Definitions
Result
alias for ProtobufError