Expand description
§Protobuf “text format” implementation.
Text format message look like this:
size: 17
color: "red"
children {
size: 18
color: "blue"
}
children {
size: 19
color: "green"
}
This format is not specified, but it is implemented by all official
protobuf implementations, including protoc
command which can decode
and encode messages using text format.
§JSON
rust-protobuf also supports JSON printing and parsing.
It is implemented in
protobuf-json-mapping
crate.
Structs§
- Parse
Error - Text format parse error.
Functions§
- fmt
- Text-format to
fmt::Formatter
. - merge_
from_ str - Parse text format message.
- parse_
from_ str - Parse text format message.
- print_
to - Text-format
- print_
to_ string - Text-format
- print_
to_ string_ pretty - Text-format