Module protobuf::text_format

source ·
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§

Functions§