[][src]Module protobuf::text_format

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.

Structs

ParseError

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