Skip to main content

encode_to_string

Function encode_to_string 

Source
pub fn encode_to_string<M: TextFormat>(msg: &M) -> String
Available on crate feature text only.
Expand description

Encode a message as a single-line textproto string.

Fields are separated by single spaces; no trailing newline.